Difference between revisions of "Template:T/doc"

From Idlescape Wiki
Jump to navigation Jump to search
(Added new template/doc)
 
m (Added cat)
 
(5 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|Stub|Item1|Item2|Item3|Item4|Item5|...}}
+
:{{T|Cleanup}}
 
+
<includeonly>[[Category:Template]]</includeonly>
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]</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}}