Difference between revisions of "Template:T/doc"

From Idlescape Wiki
Jump to navigation Jump to search
m
m (Added cat)
 
(4 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===
Line 13: Line 13:
 
:{{T|Stub}}
 
:{{T|Stub}}
  
<code><nowiki>{{T|Stub|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code>
+
<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

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

{{T|Stub}}

{{Stub}}

{{T|Cleanup}}

{{Cleanup}}