Template:T: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Reverted edit(s) by Ocibe + Gamerhenne (talk) to last version by RansomTime)
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
 
Line 1: Line 1:
A template link with a variable number of parameters (0-20).


Use:
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
Example:
:See [[:Template talk:T|{{Discussiontab}}]]
Template:
:<onlyinclude><nowiki>{{</nowiki>[[{{#ifeq:{{#sub:{{{1}}}|0|1}}|:|{{#sub:{{{1}}}|1}}{{!}}{{{1}}}|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>
[[Category:General wiki templates|Template link]]

Latest revision as of 05:38, 13 March 2016

A template link with a variable number of parameters (0-20).

Use:

{{t|<parameter1>|<parameter2>|<parameter3>|<parameter4>|<...>|<parameter20>}}

Example:

See discussion

Template:

{{[[Template:{{{1}}}|{{{1}}}]]}}