Zum Inhalt springen

Widget:Datei-Download: Unterschied zwischen den Versionen

Aus Bern baut
Keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly>
<noinclude>
Dieses Widget benötigt die Parameter: datei, name, typ, version.
Aufruf: {{#widget:Datei-Download|datei=Test.dwg|name=Mein Modell|typ=dwg|version=1.0}}
</noinclude><includeonly>
<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="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-{{$typ}}.png" width="40" />
     <img src="/resources/assets/file-type-icons/fileicon-{$typ}.png" width="40" />
   </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:{{$datei}}">{{$name}}</a>
       <a href="/index.php/Media:{$datei}">{$name}</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;">{{$typ}}</span> | Version: {{$version}}
       Format: <span style="text-transform: uppercase; font-weight: bold; color: #333;">{$typ}</span> | Version: {$version}
     </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:{{$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</a>
     <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</a>
   </div>
   </div>
</div>
</div>
</includeonly>
</includeonly>

Version vom 17. März 2026, 15:12 Uhr

Dieses Widget benötigt die Parameter: datei, name, typ, version. Aufruf:

DWG Icon
Format: DWG | Version: 1.0