Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Documentation subpage}}
=Documentation=
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
The '''template link''' (or "tl") template is a simple [[w:Macro (computer science)|macro]] [[m:Help:template|template]] used to display a template name as a link surrounded by braces, thus showing the template name as code rather than actually invoking it. Its primary use is in instruction and documentation where it is used to refer to a template by name without invoking it.


==Examples==
{{Tlx|Tl}} is used to display a template name as a link. '''Tl''' stands for '''Template link'''.
An example of its use is:


::<code><nowiki>{{tl|Example}}</nowiki></code>
== Usage ==
:which generates
<pre>
::{{tl|Example}}
{{subst:Tl|template name to display}}
</pre>
== Example ==
{| class="wikitable"
! Code
! Result
|-
| <code>{&#123;subst:Tl&#124;tfd&#125;}</code>  
| {{[[Template:tfd|tfd]]}}
|}


<includeonly>{{commonstmp}}
== See also ==
* {{Lts|tl}} - links and edit history of this template.
* {{Lts|tlp}} - Template link, with single parameter.
* {{Lts|tlx}} - Template link, up to three parameters.
* {{Lts|tlsp}} - Template link, dito subst'ed.
* {{Lts|lts}} - see Lts discussion for more variants.
* {{Lts|tlu}} - like {{tlx|tl}} / {{tlx|tlp}} for any namespace.
* {{Lcs|Internal link templates}}


== TemplateData ==
[[az:Şablon:ŞK]]
<templatedata>{
[[fi:Malline:Malline]]
"description": "This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.",
[[fr:Modèle:M]]
"params": {
[[ka:თარგი:Tl]]
"1": {
[[pl:Szablon:S]]
"label": "template name",
[[sl:Predloga:Tl]]
"description": "positional parameter: the template name without the namespace prefix “Template:”, which is added automatically",
[[uk:Шаблон:Tl]]
"type": "wiki-template-name",
[[vi:Tiêu bản:Tl]]
"required": true
[[zh:Template:Tl]]
}
[[Category:Internal link templates|Tl]]
}
</includeonly>
}</templatedata>
 
== See also ==
* {{tl|tlx}} to produce a [t]emplate [l]ink with an e[x]panded number of parameters.
<includeonly>[[Category:link templates]]</includeonly>
Please note that all contributions to skyHow are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see skyHow:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)