Difference between revisions of "Filetag"

From Sega Retro

(Created page with "<includeonly>{|class="prettytable" align="center" style="width:80%;" !style="width:80px; height:80px; padding:16px;"| File:{{#if:{{{image|}}}|{{{image|}}}|Logo-pdf.svg}}|{{#...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{|class="prettytable" align="center" style="width:80%;"
 
<includeonly>{|class="prettytable" align="center" style="width:80%;"
!style="width:80px; height:80px; padding:16px;"| [[File:{{#if:{{{image|}}}|{{{image|}}}|Logo-pdf.svg}}|{{#if:{{{imagesize|}}}|{{{imagesize|}}}|64x64px}}|{{#if:{{{imagelink|}}}|link={{{imagelink|}}}}}]]
+
!style="width:80px; height:80px; padding:16px;"| [[File:{{#if:{{{image|}}}|{{{image|}}}|Logo-file.svg}}|{{#if:{{{imagesize|}}}|{{{imagesize|}}}|64x64px}}|{{#if:{{{imagelink|}}}|link={{{imagelink|}}}}}]]
 
|style=""| {{{text|}}}
 
|style=""| {{{text|}}}
 
|-
 
|-
Line 14: Line 14:
 
}}
 
}}
 
}}
 
}}
{{#if:{{#var:fileused}}|<span style="display:none;">[[Media:{{#var:file}}]]</span>}}
+
{{#if:{{#var:fileused}}|<span style="display:none;">{{#switch:{{lc:{{fileext|{{#var:file}}}}}}|jpg|jpeg|png|gif=[[File:{{#var:file}}|120x120px]]|[[Media:{{#var:file}}]]}}</span>}}
 
|}
 
|}
 
</includeonly><noinclude>{{Filetag|image=SmokingPipe.png|text=Ceci n'est pas un modèle.}}
 
</includeonly><noinclude>{{Filetag|image=SmokingPipe.png|text=Ceci n'est pas un modèle.}}
Line 29: Line 29:
 
</pre>
 
</pre>
  
[[Category:Image templates]]</noinclude>
+
[[Category:File page templates]]</noinclude>

Latest revision as of 16:56, 8 February 2020

SmokingPipe.png Ceci n'est pas un modèle.
File usage:

No results

This template is used as a base for file templates which are used on file pages. It contains code for generating file usage lists based upon the fileref cargo table.

Usage

{{Filetag
| image=
| text=
| imagesize=
| imagelink=
}}