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}}
<includeonly>:''This template documentation is [[Wikipedia:Template doc page pattern|transcluded]] from [[{{FULLPAGENAME}}/doc]]'' [<span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}/doc|action=edit}} edit]</span>]</includeonly><noinclude>
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
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.
{{Interwikitmp-grp|{{PAGENAME}} }}</noinclude>
=Documentation=


==Examples==
{{Tlx|Tl}} is used to display a template name as a link. '''Tl''' stands for '''Template link'''.
An example of its use is:
== Usage ==
<pre>
{{subst:Tl|template name to display}}
</pre>
== Example ==
{| class="wikitable"
! Code
! Result
|-
| <code>{&#123;subst:Tl&#124;tfd&#125;}</code>
| {{[[Template:tfd|tfd]]}}
|}


::<code><nowiki>{{tl|Example}}</nowiki></code>
== See also ==
:which generates
* {{Lts|tl}} - links and edit history of this template.
::{{tl|Example}}
* {{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}}


<includeonly>
{{interwikitmp-grp|!{{FULLPAGENAMEE}} }}
</includeonly>


== TemplateData ==
<includeonly>
<templatedata>{
<!-- ADD CATEGORIES BELOW THIS LINE -->
"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.",
[[Category:Internal link templates|{{PAGENAME}}]]
"params": {
[[Category:Miscellaneous templates|{{PAGENAME}}]]
"1": {
"label": "template name",
"description": "positional parameter: the template name without the namespace prefix “Template:”, which is added automatically",
"type": "wiki-template-name",
"required": true
}
}
}</templatedata>


== See also ==
<!-- ADD INTERWIKIS BELOW THIS LINE -->
* {{tl|tlx}} to produce a [t]emplate [l]ink with an e[x]panded number of parameters.
[[az:Şablon:ŞK]]
<includeonly>[[Category:link templates]]</includeonly>
[[fi:Malline:Malline]]
[[fr:Modèle:M]]
[[ka:თარგი:Tl]]
[[pl:Szablon:S]]
[[sl:Predloga:Tl]]
[[uk:Шаблон:Tl]]
[[vi:Tiêu bản:Tl]]
[[zh:Template:Tl]]
</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)