Difference between revisions of "Template:T/doc"

From Idlescape Wiki
Jump to navigation Jump to search
m (Added cat)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A template link with a variable number of parameters.
+
A template link with a variable number of parameters. Named parameters cannot be ordered in the way it is typed and maybe shuffled.
  
 
===Use===
 
===Use===
Line 7: Line 7:
 
:{{T|T|User:Example}}
 
:{{T|T|User:Example}}
 
And to show transclusions of mainspace pages, use  
 
And to show transclusions of mainspace pages, use  
:{{T|T|:Bucket}}
+
:{{T|T|:Feather}}
  
 
===Example===
 
===Example===
 
<code><nowiki>{{T|Stub}}</nowiki></code>
 
<code><nowiki>{{T|Stub}}</nowiki></code>
 
:{{T|Stub}}
 
:{{T|Stub}}
 +
 +
<code><nowiki>{{T|Cleanup}}</nowiki></code>
 +
:{{T|Cleanup}}
 +
<includeonly>[[Category:Template]]</includeonly>

Latest revision as of 16:18, 10 February 2022

A template link with a variable number of parameters. Named parameters cannot be ordered in the way it is typed and maybe shuffled.

Use[edit source]

To use this for templates, use

{{T|parameter 1|parameter 2|parameter 3|...|parameter 20}}

To use other namespaces, use the namespace as prefix, for example

{{T|User:Example}}

And to show transclusions of mainspace pages, use

{{T|:Feather}}

Example[edit source]

{{T|Stub}}

{{Stub}}

{{T|Cleanup}}

{{Cleanup}}