Difference between revisions of "Template:Template link/doc"
From ComputerCraft Wiki
KnightMiner (Talk | contribs) (Created page with "This template is used to easily link to a template, while displaying the template brackets. == Usage == <code>{{<nowiki/>tl|''template name''}}</code> ''template name'' can...") |
KnightMiner (Talk | contribs) m (should probably swap over the examples to local pages) |
||
Line 16: | Line 16: | ||
{{tl|Template:Block}} | {{tl|Template:Block}} | ||
− | <code><nowiki>{{tl|: | + | <code><nowiki>{{tl|:Main Page}}</nowiki></code> gives:<br> |
− | {{tl|: | + | {{tl|:Main Page}} |
− | <code><nowiki>{{tl| | + | <code><nowiki>{{tl|fullurl|page|text}}</nowiki></code> gives:<br> |
− | {{tl| | + | {{tl|fullurl|page|text}} |
Revision as of 20:41, 28 August 2015
This template is used to easily link to a template, while displaying the template brackets.
Usage
{{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 {{=}}
Examples
{{tl|Example}}
gives:
{{Example}}
{{tl|Template:Block}}
gives:
{{Block}}
{{tl|:Main Page}}
gives:
{{
:Main Page}}
{{tl|fullurl|page|text}}
gives:
{{fullurl|page|text}}