Bearbeiten von „Vorlage:Media“

Aus Fahrradmonteur
Zur Navigation springenZur Suche springen

Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden.

Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und speichere dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.

Diese Seite kann nicht mit semantischen Annotationen versehen werden, da der Namensraum hierfür nicht konfiguriert wurde.

Aktuelle Version Dein Text
Zeile 1: Zeile 1:
 
<noinclude>[[Kategorie:Vorlagen|{{PAGENAME}}]]
 
<noinclude>[[Kategorie:Vorlagen|{{PAGENAME}}]]
'''Verwendete Extensions:'''
+
Extensions needed: <code>Parser Extension, String Extension, Extension:Variables</code>
* {{mediawiki|Extension:ParserFunctions}} (#ifexist, #if, #switch)
+
 
* {{mediawiki|Extension:Variables}} (#vardefine, #var)
+
</noinclude><includeonly>{{#vardefine:IconArt|{{#switch:{{#sub:{{{1}}}|-4}}
'''Benutzte Icons''' von [http://dryicons.com DryIcon]:
 
* [[Datei:Icon128px_cTxt_file.png|32px]] [[Datei:Icon128px cPng file.png|32px]] [[Datei:Icon128px cJpg file.png|32px]] [[Datei:Icon128px cGif file.png|32px]] [[Datei:Icon128px cBmp file.png|32px]] [[Datei:Icon128px cYellow mail.png|32px]] [[Datei:Icon128px cZip file.png|32px]] [[Datei:Icon128px cFull page.png|32px]] [[Datei:Icon128px cXls file.png|32px]] [[Datei:Icon128px cPpt file.png|32px]] [[Datei:Icon128px cPdf file.png|32px]] [[Datei:Icon128px cMp3 file.png|32px]] [[Datei:Icon128px cDoc file.png|32px]] [[Datei:Icon128px cAvi file.png|32px]] [[Datei:Icon128px cMov file.png|32px]] [[Datei:Icon128px cFla file.png|32px]] [[Datei:Icon48px_certificates.png|32px]]
 
<br /></noinclude><includeonly>{{#vardefine:IconArt|{{#switch:{{#sub:{{{1}}}|-3}}
 
  |.7Z
 
  |.7z
 
  |.GZ
 
  |.gz=Icon128px cZip file.png
 
  | {{#switch:{{#sub:{{{1}}}|-4}}
 
 
     |.PDF
 
     |.PDF
 
     |.pdf=Icon128px cPdf file.png
 
     |.pdf=Icon128px cPdf file.png
    |.DOT
 
    |.dot
 
    |.OTT
 
    |.ott
 
    |.OTD
 
    |.otd
 
    |.ODT
 
    |.odt
 
 
     |.DOC
 
     |.DOC
 
     |.doc=Icon128px cDoc file.png
 
     |.doc=Icon128px cDoc file.png
 
     |.PPT
 
     |.PPT
 
     |.ppt=Icon128px cPpt file.png
 
     |.ppt=Icon128px cPpt file.png
    |.ods
 
 
     |.XLS
 
     |.XLS
 
     |.xls=Icon128px cXls file.png
 
     |.xls=Icon128px cXls file.png
    |.RAR
 
    |.rar
 
    |.gz2
 
    |.tar
 
 
     |.ZIP
 
     |.ZIP
 
     |.zip=Icon128px cZip file.png
 
     |.zip=Icon128px cZip file.png
    |.OGG
 
    |.ogg
 
 
     |.MP3
 
     |.MP3
 
     |.mp3=Icon128px cMp3 file.png
 
     |.mp3=Icon128px cMp3 file.png
 
     |.AVI
 
     |.AVI
 
     |.avi=Icon128px cAvi file.png
 
     |.avi=Icon128px cAvi file.png
    |.MOV
 
    |.mov=Icon128px cMov file.png
 
    |.FLV
 
    |.flv
 
    |.FLA
 
    |.fla=Icon128px cFla file.png
 
 
     |.EML
 
     |.EML
 
     |.eml=Icon128px cYellow mail.png
 
     |.eml=Icon128px cYellow mail.png
     |.BMP
+
     |Icon128px cFull page.png}}}}{{#ifexist:Media:{{{1}}}|{{#if: {{{1}}}|<span >[[Datei:{{#var:IconArt}}|40px|link=Datei:{{{1|{{{1}}}}}}]][[Media:{{{1|{{{1}}}}}}|{{{2|{{{1}}}}}}]]</span>}}|[[Datei:{{#var:IconArt}}|40px|{{{1}}} nicht vorhanden! Hochladen?|link=Datei:{{{1|{{{1}}}}}}]] Info: <code>{{{1}}}</code> nicht vorhanden! <small>([[Datei:{{{1}}}]] Hochladen?)</small>}}</includeonly>
    |.bmp=Icon128px cBmp file.png
 
    |.PNG
 
    |.png=Icon128px cPng file.png
 
    |.GIF
 
    |.gif=Icon128px cGif file.png
 
    |.JPG
 
    |.jpg=Icon128px cJpg file.png
 
    |.TXT
 
    |.txt=Icon128px cTxt file.png
 
    |.CRT
 
    |.crt=Icon48px_certificates.png
 
    | {{#switch:{{#sub:{{{1}}}|-5}}
 
      |.DOTX
 
      |.dotx
 
      |.DOCX
 
      |.docx=Icon128px cDoc file.png
 
      |.XLSX
 
      |.xlsx=Icon128px cXls file.png
 
      |.PPTX
 
      |.pptx=Icon128px cPpt file.png
 
      |Icon128px cFull page.png}}}}}}}}{{
 
#vardefine:DateinameOhneNamespace|{{#replace:{{#replace:{{{1}}}|Media:|}}|Datei:|}}}}{{
 
#vardefine:Anzeigename|{{{2|{{{1}}}}}}}}{{
 
#ifexist:File:{{#var:DateinameOhneNamespace}}|{{
 
  #if: {{{1}}}|<span >[[Datei:{{#var:IconArt}}|32px|link=Datei:{{#var:DateinameOhneNamespace}}]][[Media:{{#var:DateinameOhneNamespace}}|{{#var:Anzeigename}}]]</span>}}|[[Datei:{{#var:IconArt}}|32px|{{#var:DateinameOhneNamespace}} nicht vorhanden! Hochladen?|link=Datei:{{#var:DateinameOhneNamespace}}]] Info: <code>{{#var:DateinameOhneNamespace}}</code> nicht vorhanden! <small>([[Datei:{{#var:DateinameOhneNamespace}}]] Hochladen?)</small>}}</includeonly><noinclude>
 
==Anwendung==
 
* <code><nowiki>{{Media|Dateiname.pdf|Alternativer Name bzw. Anzeigetext}}</nowiki></code>
 
* wahlweise mit oder ohne <code>Datei:</code> , <code>Media:</code> oder <code>Bild:</code>, aber mit Datei-Endung (Postfix: .pdf, .doc, etc...)
 
==Beispiele==
 
* {{Media|Textdatei-Beispiel.txt}}
 
* {{Media|Word-Beispiel.doc}}
 
[[Kategorie:News]]
 
</noinclude>
 
Abbrechen Bearbeitungshilfe (wird in einem neuen Fenster geöffnet)

Sonderzeichen: Ä ä Ö ö ß Ü ü | „“ ‚‘ “” «» | + · × ÷ ± ² ³ ½ # * § ¢ £ ¥ $ ¿ ¡ 〈〉 | &nbsp; [[]] | {{}} ~~~~ <ref></ref> <references/> <math></math> | °

Folgende Vorlagen werden auf dieser Seite verwendet: