Difference between revisions of "Template:Template link"

m (1 revision)
Line 1: Line 1:
<includeonly><tt>{{[[Template:{{{1}}}|{{{1}}}]]{{#if: {{{2|}}}|{{!}}{{{2}}}{{#if: {{{3|}}}|{{!}}{{{3}}}{{#if: {{{4|}}}|{{!}}{{{4}}}{{#if: {{{5|}}}|{{!}}{{{5}}} }} }} }} }}}}</tt></includeonly><noinclude>
<includeonly><code>{{[[:{{#if: {{#pos: {{{1}}} | : }} || Template: }}{{{1}}}|{{ #ifeq: {{NAMESPACE:{{{1}}}}} | Template | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]{{ #if: {{{2|}}} | {{!}}{{{2}}} }}{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}}}</code></includeonly><noinclude>
<!-- categories/interwikis on the /doc subpage, not here -->

Latest revision as of 13:29, 3 August 2015

[view | edit | history | purge]Documentation

This template is used to easily link to a template, while displaying the template brackets.


{{tl|template name}}

template name can be any page, using the same conventions as transclusion. Basically the "Template:" prefix is optional, and a colon is required to link the main space.

Parameters can also be added, to a maximum of 4. Note that ='s must be escaped using {{=}}


{{tl|OS}} gives:

{{tl|Template:Block}} gives:

{{tl|:Commands/infobox}} gives:


{{tl|move|Page to move to|Optional reason}} gives:
{{move|Page to move to|Optional reason}}

See also

[view | edit | history | purge]The above documentation is transcluded from Template:Template link/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis
Looking for a server?

Join Techworld - an amazing custom modpack server.