Template:F: Difference between revisions
Template page
More actions
m expansion |
m expansion |
||
| 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{{# | [[:File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}]]{{#if:{{{3|}}}| [[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px{{#ifeq:{{{4|}}}|b|{{!}}border}}]]}}<noinclude> | ||
Establishes a link to the file name and displays the file name without the prefix "File:".<br> | Establishes a link to the file name and displays the file name without the prefix "File:".<br> | ||
Revision as of 16:10, 19 January 2012
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
If a fourth parameter is declared with the value "b", the picture is bordered (see example 2).
- Example: Buddhist flag:
- Buddhist flag:
- Example: Buddhist flag: