Template:T2/doc: Difference between revisions

no edit summary
(new)
 
No edit summary
 
Line 1: Line 1:
{{SPW|is not on|name=T2}}
;Description
;Description
:This template is used to do something.
: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>&lt;&gt;</tt>).
;Dependencies:<!-- delete if N/A -->
;Dependencies
:* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->
*None.
;Syntax
;Syntax
:Type <code>{{t|templatename|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->}}</code> somewhere.
:{{t2|t2|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}}
;Sample output
;Sample code
:<code><nowiki>{{templatename|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki></code>
:<code><nowiki>{{t2|welcome}}</nowiki></code> gives...
::gives...
:{{t|welcome}}
{{templatename|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
:<code><nowiki>{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
;See also:<!-- delete if N/A -->
:{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}}
:* [[Template:<!-- Some other template -->]]<!-- delete if N/A -->
:<code><nowiki>{{t2|welcome|2=param1=Item1}}</nowiki></code> gives...
:* [[<!-- Some other related page -->]]<!-- delete if N/A -->
:{{t2|welcome|2=param1=Item1}}
 
:<code><nowiki>{{t2|welcome|prefix=subst}}</nowiki></code> gives...
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
:{{t2|welcome|prefix=subst}}
;See also
*{{t2|t}}
*{{t2|s}}<includeonly>
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>