Template:T/doc: Difference between revisions

From Subnautica Wiki
No edit summary
 
(Updated documentation.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
;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
;Source
:<code><nowiki>{{t|infobox}}</nowiki></code> gives...
:Improved version not needing t/piece subtemplate developed on [http://templates.fandom.com Templates wiki] see the [http://templates.fandom.com/wiki/Template:T?action=history list of authors]. Copied here via CC-By-SA 3.0 license.
:{{t|infobox}}

:<code><nowiki>{{t|infobox|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
;Example
:{{t|infobox|Item1|Item2|Item3|Item4|Item5|...}}
:{{T|T|param1|param2}}
;See also
:[[w:c:wow:Template:T|Template:T]] on WoWWiki


<includeonly>[[Category:Templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:General wiki templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 02:32, 11 July 2023

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>}}