Template:TemplateLink: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 29: Line 29:
[[Category:Link templates]]
[[Category:Link templates]]


[[ru:Template:Ссылка на шаблон]]
[[ru:Template:ШаблонСсылка]]
</noinclude>
</noinclude>

Latest revision as of 07:17, 16 January 2026

Documentation

Shortcut

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}}

The |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.

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.

If you set the |code= parameter to |, the template text will be formatted similar to the <code> tag or the {{TemplateCode}} template.

Examples

  • {{tl|-}}{{-}}
  • {{tl|Template:Welcome|subst=yes}}{{subst:Welcome}}
  • {{tl|move|Page to move to|Optional reason}}{{move|Page to move to|Optional reason}}
  • {{tl|uw-vandalism|Structorica|subst=1}}{{subst:Uw-vandalism|Structorica}}

See also