Difference between revisions of "Template:Template link/doc"

From ComputerCraft Wiki
Jump to: navigation, search
(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...")
 
m
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
{{tl|Template:Block}}
 
{{tl|Template:Block}}
  
<code><nowiki>{{tl|:Commands/infobox}}</nowiki></code> gives:<br>
+
<code><nowiki>{{tl|:Main Page}}</nowiki></code> gives:<br>
{{tl|:Commands/infobox}}
+
{{tl|:Main Page}}
  
<code><nowiki>{{tl|move|Page to move to|Optional reason}}</nowiki></code> gives:<br>
+
<code><nowiki>{{tl|fullurl|page|text}}</nowiki></code> gives:<br>
{{tl|move|Page to move to|Optional reason}}
+
{{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}}