Confirmedusers
1,783
edits
m (Sana moved page Template:Tl/doc to Template:Template link/doc) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{shortcut|tl}} | |||
This template | This template is used to easily link to a template, while displaying the template brackets. | ||
== | == Usage == | ||
{| | {{tl|tl|template name|subst{{=}}<var>yes/no</var>|code{{=}}<var>yes/no</var>}} | ||
| template | |||
''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. | |||
<code>< | |||
Parameters can also be added, to a maximum of 8. Note that <code>=</code>'s must be escaped using {{tl|1==}} | |||
The <code>|subst</code> 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>|code</code> to no to disable code formatting. | |||
== Examples == | |||
* {{tl|tl|Icon link}} → {{tl|Icon link}} | |||
* {{tl|tl|Template:Infobox|subst{{=}}yes}} → {{tl|Template:Infobox|subst=yes}} | |||
* {{tl|tl|move|Page to move to|Optional reason}} → {{tl|move|Page to move to|Optional reason}} | |||
* {{tl|tl|Delete|reason|subst{{=}}1}} → {{tl|Delete|reason|subst{{=}}1}} | |||
<includeonly> | |||
<!-- Template categories/interwiki here --> | |||
[[Category:Link templates]] | |||
</includeonly> |