Template:T/doc: Difference between revisions

From Sword of Moonlight Wiki
Jump to navigation Jump to search
Created page with "{{doc/start}} ;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|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} ;Sample code :<code><nowiki>{{t|welcome}}</nowiki></code> gives... :{{t|welcome}} :<code><nowiki>{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives... :{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} ;See als..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}
;Description
;Description
:A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
A template link with a variable number of parameters (0-20).
:Utilises [[Template:T/piece]].
 
;Syntax
;Syntax
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}}
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
;Sample code
 
:<code><nowiki>{{t|welcome}}</nowiki></code> gives...
;Source
:{{t|welcome}}
:Improved version not needing t/piece subtemplate developed on Templates wiki. Copied here via CC-By-SA 3.0 license.
:<code><nowiki>{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
 
:{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}
;Example
;See also
:{{t|t|param1|param2}}
:[[w:c:wow:Template:T|Template:T]] on WoWWiki


{{doc/end}}
<includeonly>[[Category:General wiki templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 04:16, 14 September 2024

Description

A template link with a variable number of parameters (0-20).

Syntax
{{t|<parameter1>|<parameter2>|<parameter3>|<parameter4>|<...>|<parameter20>}}
Source
Improved version not needing t/piece subtemplate developed on Templates wiki. Copied here via CC-By-SA 3.0 license.
Example
{{t|<param1>|<param2>}}