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}}
<!-- 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==
this template may be used both function the same way and produce the same results. This is not true for all such visually confusing templates interchangeable.
An example of its use is:


::<code><nowiki>{{tl|Example}}</nowiki></code>
:which generates
::{{tl|Example}}




== TemplateData ==
== See also ==
<templatedata>{
* {{tiw|tl2}
"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.",
* {{tiw|tlp}} to produce a [p]arameter.
"params": {
* {{tiw|tlx}} to produce
"1": {
* {{tiw|tlsp}} to produce a [t]emplate [l]ink that's [[Wikipedia:Substitution| [p]arameter.
"label": "template name",
* {{tiw|lts}}
"description": "positional parameter: the template name without the namespace prefix “Template:”, which is added automatically",
* {{tiw|tlu}}, tl or tlp in any
"type": "wiki-template-name",
* {{lcs|Internal template-link templates}}
"required": true
* {{tiw|xpd}} to e[xp]an[d] (i.e. demonstrate) a template ''in situ''
}
}
}</templatedata>


== See also ==
<includeonly>{{Sandbox other||
* {{tl|tlx}} to produce a [t]emplate [l]ink with an e[x]panded number of parameters.
<!-- Categories go below this line,
<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)