Template:T: Difference between revisions

Jump to navigation Jump to search
1,383 bytes added ,  22 October 2017
no edit summary
No edit summary
 
No edit summary
 
Line 1: Line 1:
A template link with a variable number of parameters (0-20).
{{ #if: {{{style|}}} | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: {{{prefix|}}} | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #if: {{NAMESPACE:{{{1}}}}} || {{ns:10}} }} }}:{{{1}}}|{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:{{{1}}}}} | {{ns:10}} | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]</span>{{ #if: {{{2|}}}
 
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{2}}}</var> }}{{ #if: {{{3|}}}
Use:
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if: {{{4|}}}
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if: {{{5|}}}
 
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if: {{{6|}}}
Example:
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if: {{{7|}}}
:See the discussion page.
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if: {{{8|}}}
 
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if: {{{9|}}}
Template:
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if: {{{10|}}}
:<onlyinclude><nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]{{t/piece|{{{2|---}}}}}{{t/piece|{{{3|---}}}}}{{t/piece|{{{4|---}}}}}{{t/piece|{{{5|---}}}}}{{t/piece|{{{6|---}}}}}{{t/piece|{{{7|---}}}}}{{t/piece|{{{8|---}}}}}{{t/piece|{{{9|---}}}}}{{t/piece|{{{10|---}}}}}{{t/piece|{{{11|---}}}}}{{t/piece|{{{12|---}}}}}{{t/piece|{{{13|---}}}}}{{t/piece|{{{14|---}}}}}{{t/piece|{{{15|---}}}}}{{t/piece|{{{16|---}}}}}{{t/piece|{{{17|---}}}}}{{t/piece|{{{18|---}}}}}{{t/piece|{{{19|---}}}}}{{t/piece|{{{20|---}}}}}{{t/piece|{{{21|---}}}}}<nowiki>}}</nowiki></onlyinclude>
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if: {{{11|}}}
 
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if: {{{12|}}}
[[Category:General wiki templates|Template link]]
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if: {{{13|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if: {{{14|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if: {{{15|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if: {{{16|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if: {{{17|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if: {{{18|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if: {{{19|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if: {{{20|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if: {{{21|}}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: {{{style|}}} | </code> }}<noinclude>{{documentation}}</noinclude>

Navigation menu