Template:T2/doc: Difference between revisions
SirRandomage (talk | contribs) (new) |
SirRandomage (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{SPW|is not on|name=T2}} | |||
;Description | ;Description | ||
: | :A template link with a variable number of example parameters (0-20), which can be used to show example inputs, but not italicized or surrounded by angle brackets (<tt><></tt>). | ||
;Dependencies | ;Dependencies | ||
*None. | |||
;Syntax | ;Syntax | ||
: | :{{t2|t2|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}} | ||
;Sample code | |||
:<code><nowiki>{{ | :<code><nowiki>{{t2|welcome}}</nowiki></code> gives... | ||
:{{t|welcome}} | |||
{{ | :<code><nowiki>{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives... | ||
;See also | :{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}} | ||
:<code><nowiki>{{t2|welcome|2=param1=Item1}}</nowiki></code> gives... | |||
:{{t2|welcome|2=param1=Item1}} | |||
:<code><nowiki>{{t2|welcome|prefix=subst}}</nowiki></code> gives... | |||
:{{t2|welcome|prefix=subst}} | |||
;See also | |||
*{{t2|t}} | |||
*{{t2|s}}<includeonly> | |||
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude> | |||
[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 14:36, 29 January 2012
This template was copied from Template:T2 on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
- Description
- A template link with a variable number of example parameters (0-20), which can be used to show example inputs, but not italicized or surrounded by angle brackets (<>).
- Dependencies
- None.
- Syntax
- {{t2|parameter1|parameter2|parameter3|parameter4|...|parameter20|prefix=...}}
- Sample code
{{t2|welcome}}
gives...- {{welcome}}
{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}}
gives...- {{welcome|Item1|Item2|Item3|Item4|Item5|...}}
{{t2|welcome|2=param1=Item1}}
gives...- {{welcome|param1=Item1}}
{{t2|welcome|prefix=subst}}
gives...- {{subst:welcome}}
- See also