Template

Template link/doc

From Dogcraft Wiki

imported>FANDOM
No edit summary
 
m (Text replacement - "Category:Templates" to "Category:Documented templates")
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
;Description
''For template links including the barckets, see the {{tt|tt}} template.''<br />
:A template link with a variable number of example parameters (0-20), which can be used to show example inputs.
''For expanded template links, see {{template link|tlx}}.''
:Utilises [[Template:T/piece]].
;Syntax
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}}
;Sample code
:<code><nowiki>{{t|infobox}}</nowiki></code> gives...
:{{t|Infobox character}}
:<code><nowiki>{{t|Infobox character|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
:{{t|Infobox character|Item1|Item2|Item3|Item4|Item5|...}}
;See also
:[[w:c:wow:Template:T|Template:T]] on WoWWiki


<includeonly>[[Category:Templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
The {{t|t}}, {{t|tl}} and {{t|template}} templates serve as an alias for this template and redirect to it. The {{t|t}}, {{t|tl}} and {{t|template}} templates can still be used on pages if someone prefers a shorter version, they will function.
 
=== 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|infobox}}</nowiki></code> gives...
{{t|Infobox character}}
<code><nowiki>{{t|Infobox character|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
{{t|Infobox character|Item1|Item2|Item3|Item4|Item5|...}}
 
=== See also ===
[[w:c:wow:Template:T|Template:T]] on WoWWiki
 
<includeonly>[[Category:Documented templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>[[Category:Documentation templates]]

Latest revision as of 07:17, 4 December 2023

For template links including the barckets, see the {{tt}} template.
For expanded template links, see {{tlx}}.

The {{t}}, {{tl}} and {{template}} templates serve as an alias for this template and redirect to it. The {{t}}, {{tl}} and {{template}} templates can still be used on pages if someone prefers a shorter version, they will function.

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|<parameter1>|<parameter2>|<parameter3>|<parameter4>|<...>|<parameter20>}}

Sample code

{{t|infobox}} gives... {{Infobox character}} {{t|Infobox character|Item1|Item2|Item3|Item4|Item5|...}} gives... {{Infobox character|<Item1>|<Item2>|<Item3>|<Item4>|<Item5>|<...>}}

See also

Template:T on WoWWiki