Template:Template link/doc: Difference between revisions
Template page
More actions
Created page with "<noinclude>{{Documentation subpage}}</noinclude> {{Source|Minecraft}} {{shortcut|tl|t}} This template is used to easily link to a template, while displaying the template brackets. == Usage == {{tcode|tl|template name|subst{{=}}<var>yes/no</var>|code{{=}}<var>yes/no</var>}} ''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 ad..." |
(No difference)
|
Revision as of 16:29, 16 June 2025
| This is a documentation subpage for Template:Template link. It contains usage information, categories and other content that is not part of the original page. |
This template is used to easily link to a template, while displaying the template brackets.
Usage
{{tl|template name|subst=yes/no|code=yes/no}}
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 8. Note that ='s must be escaped using {{=}}
The |subst= parameter will determine whether the template link will display as a substed template or not. If the subst parameter is set, it will display the word "subst:" in front of the template link.
Set |code= to no to disable code formatting.
Examples
{{tl|OS}}â{{OS}}{{tl|Template:Welcome|subst=yes}}â{{subst:Welcome}}{{tl|:Vault Gear/Attributes}}â{{ :Vault Gear/Attributes}}{{tl|move|Page to move to|Optional reason}}â{{move|Page to move to|Optional reason}}{{tl|uw-vandalism|Minecraft|subst=1}}â{{subst:Uw-vandalism|Minecraft}}
See also
{{TemplateCode}}{{parameter}}