Difference between revisions of "Template:Template link/doc"
From ComputerCraft Wiki
KnightMiner (Talk | contribs) m (should probably swap over the examples to local pages) |
Magiczocker (Talk | contribs) m |
||
Line 21: | Line 21: | ||
<code><nowiki>{{tl|fullurl|page|text}}</nowiki></code> gives:<br> | <code><nowiki>{{tl|fullurl|page|text}}</nowiki></code> gives:<br> | ||
{{tl|fullurl|page|text}} | {{tl|fullurl|page|text}} | ||
+ | <noinclude>[[Category:Documentation pages]]</noinclude> |
Latest revision as of 07:51, 4 August 2020
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}}