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
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 [http://templates.fandom.com Templates wiki] see the [http://templates.fandom.com/index.php?title=Template:T&action=history list of authors]. 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>

Revision as of 09:10, 12 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 see the list of authors. Copied here via CC-By-SA 3.0 license.
Example
{{t|<param1>|<param2>}}