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 [[Template:Tl/doc]]'' [<span class="plainlinks">[{{fullurl:Template:Tl/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|Tl/doc }}</noinclude>


==Examples==
=Documentation=
An example of its use is:


::<code><nowiki>{{tl|Example}}</nowiki></code>
{{Tlx|Tl}} is used to display a template name as a link. '''Tl''' stands for '''Template link'''.
:which generates
::{{tl|Example}}
== Usage ==


<pre>{{Tl|template name to display}}</pre>


== TemplateData ==
== Example ==
<templatedata>{
{| class="wikitable"
"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.",
! Code
"params": {
! Result
"1": {
|-
"label": "template name",
| <code><nowiki>{{Tl|tfd}}</nowiki></code>
"description": "positional parameter: the template name without the namespace prefix “Template:”, which is added automatically",
| {{[[Template:tfd|tfd]]}}
"type": "wiki-template-name",
|}
"required": true
}
}
}</templatedata>


== See also ==
== See also ==
* {{tl|tlx}} to produce a [t]emplate [l]ink with an e[x]panded number of parameters.
* {{Lts|tl}} - links and edit history of this template.
<includeonly>[[Category:link templates]]</includeonly>
* {{Lts|tlp}} - Template link, with single parameter.
* {{Lts|tlx}} - Template link, up to three parameters.
* {{Lts|tlsp}} - Template link, ditto 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|!Template:Tl }}
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Internal link templates|Tl]]
[[Category:Miscellaneous templates|Tl]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[az:Şablon:ŞK]]
[[bg:Шаблон:Ш]]
[[ca:Plantilla:Tl]]
[[cs:Šablona:Šablona]]
[[eo:Ŝablono:Ŝ]]
[[es:Plantilla:Template link]]
[[fa:الگو:الگوی]]
[[fi:Malline:Malline]]
[[fr:Modèle:M]]
[[he:תבנית:תב]]
[[ka:თარგი:Tl]]
[[ko:틀:Tl]]
[[kw:Template:Viz]]
[[pl:Szablon:S]]
[[pt:Predefinição:Link para predefinição]]
[[ru:Шаблон:Tl]]
[[sl:Predloga:Tl]]
[[sv:Mall:Mall]]
[[th:แม่แบบ: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)