Template:F: Difference between revisions
Template page
More actions
No edit summary |
m Reverted edits by 208.107.22.250 (talk) to last revision by Bdk |
||
| Line 1: | Line 1: | ||
[[:File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}]]{{#if:{{{3|}}}| [[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px]]}}<noinclude> | [[:File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}]]{{#if:{{{3|}}}| [[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px]]}}<noinclude> | ||
Establishes a link to the file name and displays the file name without the prefix "File:".<br> | |||
<small>Because of the ''empty parameter bug'' it does not use the 'pipe trick' but a work-around against that bug.</small><br> | <small>Because of the ''empty parameter bug'' it does not use the 'pipe trick' but a work-around against that bug.</small><br> | ||
If a second parameter is specified, this name is displayed instead of the file name.<br> | If a second parameter is specified, this name is displayed instead of the file name.<br> | ||
| Line 8: | Line 8: | ||
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
[[Category:Typing-aid templates|{{PAGENAME}}]] | [[Category:Typing-aid templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 10:27, 30 December 2011
Establishes a link to the file name and displays the file name without the prefix "File:".
Because of the empty parameter bug it does not use the 'pipe trick' but a work-around against that bug.
If a second parameter is specified, this name is displayed instead of the file name.
If a third parameter is declared it specifies the px-size, and the file will be displayed inline following the file name
- Example: Buddhist flag:
- Example: Buddhist flag: