Vorlage:Media: Unterschied zwischen den Versionen
Aus Fahrradmonteur
Zur Navigation springenZur Suche springenBarone (Diskussion | Beiträge) K |
|||
(18 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
'''Verwendete Extensions:''' | '''Verwendete Extensions:''' | ||
* {{mediawiki|Extension:ParserFunctions}} (#ifexist, #if, #switch) | * {{mediawiki|Extension:ParserFunctions}} (#ifexist, #if, #switch) | ||
− | |||
* {{mediawiki|Extension:Variables}} (#vardefine, #var) | * {{mediawiki|Extension:Variables}} (#vardefine, #var) | ||
− | '''Benutzte | + | '''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: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}} | |
− | |||
− | |||
− | <br /> | ||
− | |||
|.7Z | |.7Z | ||
|.7z | |.7z | ||
|.GZ | |.GZ | ||
|.gz=Icon128px cZip file.png | |.gz=Icon128px cZip file.png | ||
− | |{{#switch:{{#sub:{{{1}}}|-4}} | + | | {{#switch:{{#sub:{{{1}}}|-4}} |
|.PDF | |.PDF | ||
|.pdf=Icon128px cPdf file.png | |.pdf=Icon128px cPdf file.png | ||
Zeile 24: | Zeile 19: | ||
|.OTD | |.OTD | ||
|.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 | ||
Zeile 60: | Zeile 58: | ||
|.TXT | |.TXT | ||
|.txt=Icon128px cTxt file.png | |.txt=Icon128px cTxt file.png | ||
+ | |.CRT | ||
+ | |.crt=Icon48px_certificates.png | ||
| {{#switch:{{#sub:{{{1}}}|-5}} | | {{#switch:{{#sub:{{{1}}}|-5}} | ||
|.DOTX | |.DOTX | ||
Zeile 69: | Zeile 69: | ||
|.PPTX | |.PPTX | ||
|.pptx=Icon128px cPpt file.png | |.pptx=Icon128px cPpt file.png | ||
− | |Icon128px cFull page.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]] | [[Kategorie:News]] | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 15. Oktober 2014, 13:42 Uhr
Verwendete Extensions:
- Extension:ParserFunctions (#ifexist, #if, #switch)
- Extension:Variables (#vardefine, #var)
Benutzte Icons von DryIcon:
Anwendung[Quelltext bearbeiten]
{{Media|Dateiname.pdf|Alternativer Name bzw. Anzeigetext}}
- wahlweise mit oder ohne
Datei:
,Media:
oderBild:
, aber mit Datei-Endung (Postfix: .pdf, .doc, etc...)