Template:F: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mp>Blue2
m Bot: Substing template:f
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Fun:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>
{{{p|}}}{{#if:{{{by|}}}|{{#ifeq:{{int:lang}}|bn|{{F/beng|{{{by}}}}}}}}}{{#if:{{{3|}}}<!--
-->|{{#switch:{{lc:{{{3|}}}}}<!--                                      case1: file name (p#3=FFL?)
-->|g={{F/layout|{{{1|}}}|{{{2|}}}|g|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|Y=1}}<!--c1 G
-->|n|c|d|f|x|u|i|s|h|w|v|p={{F/layout|{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1}}}}}}}<!--c1
-->|{{{2|}}}|{{lc:{{{3}}}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|Y=1}}<!--


This template is used as such: <code><nowiki>{{subst:F|evolution}}</nowiki></code>, which produces [[Fun:evolution|evolution]].
    #default=
-->|{{#if:{{{l|}}}|<small>''Can't [[Template:F|display]]''&nbsp; "[[:{{{l}}}:File:{{PAGENAME:{{{1}}}}}|<u>{{{l}}}:</u>{{PAGENAME:{{{1}}}}}]]"</small><!--
-->|{{#ifeq:{{{2}}}|G|{{F/layout|{{{1}}}|{{{3}}}|g|{{{4|}}}|Y=2}}<!-- case2: gallery function "G" p#2


There is an optional second parameter that allows you to change the displayed name.  For example, <code><nowiki>{{subst:F|evolution|the horrifying truth behind evilution}}</nowiki></code> produces [[Fun:evolution|the horrifying truth behind evilution]].
  -->|{{#switch:l|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--case3: file name left (not option "l")
  -->|{{F/layout|{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1}}}}}}}<!--c3
      -->|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=3}}<!--
    -->{{#switch:Z|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=|{{#switch:{{{3}}}|+|-=|<!--
    -->{{#if:{{{T|}}}|&nbsp;}}{{{t|{{{T|&#58;&nbsp;}}}}}}}}}}<!--
  -->}}<!--


This template is intended to make typing links to the Funspace easier, and thus encourage editors to actually link there.
-->{{#switch:{{{3}}}|+|-=<!--
-->|{{#if:{{{1|}}}|[[File:{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1}}}}}}}<!--
-->{{#if:{{{lang|}}}|{{!}}lang={{{lang}}}}}<!--                      now occurs the 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}}]]}}}}<!--


{{DEFAULTSORT:{{PAGENAME}}}}
-->{{#switch:l|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--  case4: file name right (option "l")
[[Category:In-text templates]]
-->{{#if:{{{T|}}}|&nbsp;}}{{{t|{{{T|&nbsp;}}}}}}<!--
[[Category:Link templates]]
-->{{F/layout|{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1}}}}}}}<!--c4
[[Category:Templates deprecated by the pipe trick]]</noinclude>
-->|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=4}}<!--
-->}}}}}}}}<!--
                                without parameter 3:
-->|{{#switch:{{lc:{{{2|}}}}}<!--                                      case5: file name (p#2=FFL?)
-->|g={{F/layout|{{{1}}}||g|{{{4|}}}|Y=5}}<!--c5 "G"
-->|n|c|d|f|x|u|i|s|h|w|v|p={{F/layout|{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1}}}}}}}<!--c5
-->||{{lc:{{{2}}}}}|{{{4|}}}|l={{{l|}}}|t={{{t|}}}|Y=5}}<!--
                                                                      case6: file name (this is the default/standard)
-->|{{F/layout|{{#ifeq:{{NAMESPACENUMBER}}{{{1|}}}|6*|{{PAGENAME}}|{{PAGENAME:{{{1<noinclude>|Sample.svg</noinclude>}}}}}}}<!--c6
-->|{{{2|}}}| |{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|l={{{l|}}}|c=6}}}}<!--
-->}}<!--endif 3
-->{{#switch:{{{by|}}}|:|=|{{#ifeq:{{int:lang}}|bn||&nbsp;''{{I18n/by}}'' {{#switch:{{padleft:|1|{{{by}}}}}|&#91;|&#123;={{{by}}}<!--
  -->|{{u|{{{by}}}|{{#switch:+|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=+<!--
  -->|{{#switch:-|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=-}}}}}}}}}}}}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 21:00, 14 July 2023

Sample.svg