Difference between revisions of "Template:T/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
(copy-over from latest version on http://templates.wikia.com/wiki/Template:T/doc)
 
m
 
Line 19: Line 19:
 
* {{t|s}}<includeonly>
 
* {{t|s}}<includeonly>
 
[[Category:General wiki templates]]
 
[[Category:General wiki templates]]
[[ja:テンプレート:T]]
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
[[Category:Template documentation]]
 
[[Category:Template documentation]]
[[ja:テンプレート:T/doc]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:17, 24 June 2021

Description
A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
Syntax
{{t|parameter1|parameter2|parameter3|parameter4|...|parameter20|prefix=...}}
Sample code
{{t|welcome}} gives...
{{welcome}}
{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} gives...
{{welcome|Item1|Item2|Item3|Item4|Item5|...}}
{{t|welcome|2=param1=Item1}} gives...
{{welcome|param1=Item1}}
{{t|welcome|prefix=subst}} gives...
{{subst:welcome}}
{{t|welcome|style=code}} gives...
{{welcome}}
See also