Template:TemplateLink

From Structorica Wiki
Jump to navigation Jump to search

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