Difference between revisions of "Template:T"

From Hgames Wiki
Jump to: navigation, search
m
 
(removed optional 20 parameters as we have now parserFunctions)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<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><noinclude>
+
<nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]<nowiki>}}</nowiki><noinclude>
{{documentation}}</noinclude>
+
A template link <strike>with a variable number of parameters (0-20).</strike>
 +
 
 +
Use:
 +
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
 +
 
 +
Example:
 +
<code><nowiki>{{t|Welcome}}</nowiki></code>
 +
:{{t|Welcome}}
 +
 
 +
<code><nowiki>{{t|Welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code>
 +
:{{t|Welcome|Item1|Item2|Item3|Item4|Item5|...}}
 +
 
 +
Template:
 +
:<onlyinclude><nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]<nowiki>}}</nowiki></onlyinclude>
 +
[[Category:Templates]]

Latest revision as of 14:33, 3 March 2014

{{[[Template:{{{1}}}|{{{1}}}]]}} A template link with a variable number of parameters (0-20).

Use:

{{t}}

Example: {{t|Welcome}}

{{Welcome}}

{{t|Welcome|Item1|Item2|Item3|Item4|Item5|...}}

{{Welcome}}

Template:

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