FANDOM


m (Added code tag)
(allowing other namespaces, and letting the link ignore subst: and safesubst: - the text will still show the (safe)subst: before it, only the link to the page is corrected.)
Line 1: Line 1:
<includeonly><code><nowiki>{{</nowiki>[http://runescape.wikia.com{{localurl:{{{SISTER|}}}Template:{{{1}}}}} {{{1}}}]{{t/piece|{{{2|---}}}}}{{t/piece|{{{3|---}}}}}{{t/piece|{{{4|---}}}}}{{t/piece|{{{5|---}}}}}{{t/piece|{{{6|---}}}}}{{t/piece|{{{7|---}}}}}{{t/piece|{{{8|---}}}}}{{t/piece|{{{9|---}}}}}{{t/piece|{{{10|---}}}}}{{t/piece|{{{11|---}}}}}{{t/piece|{{{12|---}}}}}{{t/piece|{{{13|---}}}}}{{t/piece|{{{14|---}}}}}{{t/piece|{{{15|---}}}}}{{t/piece|{{{16|---}}}}}{{t/piece|{{{17|---}}}}}{{t/piece|{{{18|---}}}}}{{t/piece|{{{19|---}}}}}{{t/piece|{{{20|---}}}}}{{t/piece|{{{21|---}}}}}<nowiki>}}</nowiki></code></includeonly><noinclude>{{/doc}}</noinclude>
+
<includeonly><code><nowiki>{{</nowiki>[http://runescape.wikia.com{{localurl:{{{SISTER|}}}{{#vardefine:param1|{{#replace:{{#replace:{{{1|}}}|subst:|}}|safesubst:|}}}}{{#if:{{NAMESPACEE:{{#var:param1}}}}|{{NAMESPACEE:{{#var:param1}}}}|{{#ifeq:{{#pos:{{#var:param1}}|:}}|0||Template:}}}}{{#var:param1}}}} {{{1}}}]{{t/piece|{{{2|---}}}}}{{t/piece|{{{3|---}}}}}{{t/piece|{{{4|---}}}}}{{t/piece|{{{5|---}}}}}{{t/piece|{{{6|---}}}}}{{t/piece|{{{7|---}}}}}{{t/piece|{{{8|---}}}}}{{t/piece|{{{9|---}}}}}{{t/piece|{{{10|---}}}}}{{t/piece|{{{11|---}}}}}{{t/piece|{{{12|---}}}}}{{t/piece|{{{13|---}}}}}{{t/piece|{{{14|---}}}}}{{t/piece|{{{15|---}}}}}{{t/piece|{{{16|---}}}}}{{t/piece|{{{17|---}}}}}{{t/piece|{{{18|---}}}}}{{t/piece|{{{19|---}}}}}{{t/piece|{{{20|---}}}}}{{t/piece|{{{21|---}}}}}<nowiki>}}</nowiki></code></includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 22:54, May 11, 2011

Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:T/doc.
Template:T invokes Module:T using Lua.

A template link with a variable number of parameters.

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

{{User:Example}}

And to show transclusions of mainspace pages, use

{{:Bucket}}

Example

{{T|Stub}}

{{Stub}}

{{T|Stub|Item1|Item2|Item3|Item4|Item5|...}}

{{Stub|Item1|Item2|Item3|Item4|Item5|...}}
Community content is available under CC-BY-SA unless otherwise noted.