Difference between revisions of "Template:F"
Jump to navigation
Jump to search
Template documentation[create]
Mediawiki>HappyDog m (Make cat name consistent) |
Wikimedia Commons>Pikne (CptViraj, please pay attention to whitespace) |
||
Line 1: | Line 1: | ||
− | + | <noinclude>{{protected}}</noinclude><!-- | |
− | < | + | -->{{#if:{{{by|}}}|{{#ifeq:{{int:lang}}|bn|{{F/beng|{{{by}}}}}}}}}{{#if:{{{3|}}}<!-- |
+ | -->|{{#switch:{{lc:{{{3|}}}}}<!-- case1: file name (p#3=FFL?) | ||
+ | -->|n|c|d|f|x|u|g|i|s|h|w|v|p={{F/name|{{{1|}}}|{{{2|}}}|{{lc:{{{3}}}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|Y=1}}<!-- | ||
+ | |||
+ | #default= | ||
+ | -->|{{#if:{{{l|}}}|<small>''Can't [[Template:F|display]]'' "[[:{{{l}}}:File:{{PAGENAME:{{{1}}}}}|<u>{{{l}}}:</u>{{PAGENAME:{{{1}}}}}]]"</small><!-- | ||
+ | -->|{{#ifeq:{{{2}}}|G|{{F/name|{{{1|}}}|{{{3}}}|g|{{{4|}}}|Y=2}}<!-- case2: gallery function "G" | ||
+ | |||
+ | -->|{{#switch:l|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--case3: file name left (not option "l") | ||
+ | -->|{{F/name|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=3}}<!-- | ||
+ | -->{{#switch:Z|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=|{{#switch:{{{3}}}|+|-=|<!-- | ||
+ | -->{{#if:{{{T|}}}| }}{{{t|{{{T|: }}}}}}}}}}<!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | -->{{#switch:{{{3}}}|+|-=<!-- | ||
+ | -->|{{#if:{{{1|}}}|[[File:{{PAGENAME:{{{1}}}}}{{#if:{{{lang|}}}|{{!}}lang={{{lang}}}}}<!-- display of the image | ||
+ | -->{{!}}{{{3|96}}}px{{#switch:b|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}={{!}}border}}<!-- | ||
+ | -->{{#switch:r|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}={{!}}right}}]]}}}}<!-- | ||
+ | |||
+ | -->{{#switch:l|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!-- case4: file name right (option "l") | ||
+ | -->{{#if:{{{T|}}}| }}{{{t|{{{T| }}}}}}<!-- | ||
+ | -->{{F/name|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=4}}<!-- | ||
+ | -->}}}}}}}}<!-- | ||
+ | without parameter 3: | ||
+ | -->|{{#switch:{{lc:{{{2|}}}}}<!-- case5: file name (p#2=FFL?) | ||
+ | -->|n|c|d|f|x|u|g|i|s|h|w|v|p={{F/name|{{{1|}}}||{{lc:{{{2}}}}}|l={{{l|}}}|t={{{t|}}}|Y=5}}<!-- | ||
+ | case6: file name (this is the default/standard) | ||
+ | -->|{{F/name|{{{1|<noinclude>Sample.svg</noinclude>}}}|{{{2|}}}| |{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=6}}}}<!-- | ||
+ | -->}}{{#if:{{{by|}}}|{{#ifeq:{{int:lang}}|bn|| ''{{I18n/by}}'' {{#switch:{{padleft:|1|{{{by}}}}}|[|{={{{by}}}<!-- | ||
+ | -->|{{u|{{{by}}}|{{#switch:+|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=+<!-- | ||
+ | -->|{{#switch:-|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=-}}}}}}}}}}}}<noinclude> | ||
+ | {{documentation}} | ||
+ | </noinclude> |
Revision as of 16:33, 11 August 2019
