Difference between revisions of "Template:T/doc"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Creation) |
m (Added a new sample) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} | :{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} | ||
;Sample code | ;Sample code | ||
:<code><nowiki>{{t|welcome}}</nowiki></code> gives | :<code><nowiki>{{t|welcome}}</nowiki></code> gives {{t|welcome}} | ||
:<code><nowiki>{{t|welcome|Item1|Item2|Item3|...}}</nowiki></code> gives {{t|welcome|Item1|Item2|Item3|...}} | |||
:<code><nowiki>{{t|welcome|Item1|Item2|Item3 | :<code><nowiki>{{t|welcome|name&#x3D;Tom|Time&#x3D;12:34}}</nowiki></code> gives {{t|welcome|name=Tom|Time=12:34}} | ||
:{{t|welcome| | |||
;See also | ;See also | ||
:[ | :[https://wowpedia.fandom.com/wiki/Wowpedia:Templates Template:T] on Wowpedia | ||
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 08:28, 9 November 2022
- Description
- A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
- Utilises Template:T/piece.
- Syntax
- {{t|parameter1|parameter2|parameter3|parameter4|...|parameter20}}
- Sample code
{{t|welcome}}
gives {{welcome}}{{t|welcome|Item1|Item2|Item3|...}}
gives {{welcome|Item1|Item2|Item3|...}}{{t|welcome|name=Tom|Time=12:34}}
gives {{welcome|name=Tom|Time=12:34}}
- See also
- Template:T on Wowpedia