Zum Inhalt springen

Widget:Datei-Download: Unterschied zwischen den Versionen

Aus Bern baut
Die Seite wurde neu angelegt: „<noinclude> Dieses Widget rendert eine Download-Box für CAD-Dateien mit Icons vom Server-Pfad. Verwendung: {{#widget:Datei-Download|datei=...|name=...|typ=...|version=...}} </noinclude> <includeonly> <div style="border: 1px solid #ddd; background: #fcfcfc; padding: 15px; margin: 10px 0; display: flex; align-items: center; border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); max-width: 650px; font-family: sans-serif;"> <div style="flex: 0 0 50p…“
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<noinclude>
<noinclude>
Dieses Widget rendert eine Download-Box für CAD-Dateien mit Icons vom Server-Pfad.
Anwendung: {{#widget:CAD-Download|datei=Test.dwg|name=Mein Modell|typ=dwg|version=1.1}}
Verwendung: {{#widget:Datei-Download|datei=...|name=...|typ=...|version=...}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<div style="border: 1px solid #ddd; background: #fcfcfc; padding: 15px; margin: 10px 0; display: flex; align-items: center; border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); max-width: 650px; font-family: sans-serif;">
<div style="border: 1px solid #ddd; background: #fcfcfc; padding: 15px; margin: 10px 0; display: flex; align-items: center; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); max-width: 650px; font-family: sans-serif;">
    
    
   <div style="flex: 0 0 50px; text-align: center;">
   <div style="flex: 0 0 50px; text-align: center;">
     <img src="/resources/assets/file-type-icons/fileicon-.png" width="40" alt="Icon" />
     <img src="/resources/assets/file-type-icons/fileicon-{$typ|default:'dxf'}.png" width="40" alt="Icon" />
   </div>
   </div>


   <div style="flex: 1; padding-left: 20px;">
   <div style="flex: 1; padding-left: 20px;">
     <div style="font-weight: bold; font-size: 1.1em; margin-bottom: 4px;">
     <div style="font-weight: bold; font-size: 1.1em; margin-bottom: 4px;">
       <a href="/index.php/Media:"></a>
       <a href="/index.php/Media:{$datei}">{$name|default:$datei}</a>
     </div>
     </div>
     <div style="color: #666; font-size: 0.9em;">
     <div style="color: #666; font-size: 0.9em;">
       Format: <span style="text-transform: uppercase; font-weight: bold; color: #333;"></span>  
       Format: <span style="text-transform: uppercase; font-weight: bold; color: #333;">{$typ|default:'DXF'}</span>  
       <span style="margin: 0 10px; color: #ccc;">|</span>  
       <span style="margin: 0 10px; color: #ccc;">|</span>  
       Version: <span style="color: #333;"></span>
       Version: <span style="color: #333;">{$version|default:'1.0'}</span>
     </div>
     </div>
   </div>
   </div>


   <div style="flex: 0 0 120px; text-align: right;">
   <div style="flex: 0 0 120px; text-align: right;">
     <a href="/index.php/Media:" style="display: inline-block; padding: 8px 16px; background: #36c; color: white; border-radius: 4px; font-weight: bold; text-decoration: none;">
     <a href="/index.php/Media:{$datei}" style="display: inline-block; padding: 8px 16px; background: #36c; color: white; border-radius: 4px; font-weight: bold; text-decoration: none; font-size: 0.9em;">
       Download
       Download
     </a>
     </a>

Version vom 17. März 2026, 14:47 Uhr

Anwendung:

Fehler beim Widget CAD-Download: Unable to load template 'wiki:CAD-Download'