Template:T2: Difference between revisions
Jump to navigation
Jump to search
(Created page with ";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 (<…") |
mNo edit summary |
||
Line 1: | Line 1: | ||
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 '<>'. See also {{t2|t}}. | |||
;Syntax | ;Syntax | ||
:{{t2|t2|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}} | :{{t2|t2|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}} | ||
;Sample code | ;Sample code | ||
:<code><nowiki>{{t2|welcome}}</nowiki></code> gives... | :<code><nowiki>{{t2|welcome}}</nowiki></code> gives... | ||
Line 14: | Line 13: | ||
:<code><nowiki>{{t2|welcome|prefix=subst}}</nowiki></code> gives... | :<code><nowiki>{{t2|welcome|prefix=subst}}</nowiki></code> gives... | ||
:{{t2|welcome|prefix=subst}} | :{{t2|welcome|prefix=subst}} | ||
---- | ---- | ||
Line 41: | Line 37: | ||
-->{{#if:{{{20|}}}||<span style="color:#999;">{{{20}}}</span>}}<!-- | -->{{#if:{{{20|}}}||<span style="color:#999;">{{{20}}}</span>}}<!-- | ||
-->{{#if:{{{21|}}}||<span style="color:#999;">{{{21}}}</span>}}<!-- | -->{{#if:{{{21|}}}||<span style="color:#999;">{{{21}}}</span>}}<!-- | ||
--><nowiki>}}</nowiki></onlyinclude> | --><nowiki>}}</nowiki></onlyinclude><!-- | ||
[[Category:General wiki templates|{{PAGENAME}}]] | |||
-->[[Category:General wiki templates|{{PAGENAME}}]] |
Latest revision as of 01:50, 22 May 2020
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 '<>'. See also {{t}}.
- 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}}
- Template
{{[[Template:{{{1}}}|{{{1}}}]]}}