Tempilet:Template link
{{Foo}}
| This template is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
| This template should never be substituted – use {{tl}}. |
Template link displays a template name as a link surrounded by braces, thus showing the template name as code rather than actually invoking it.
Note that this template has aliases Tempilet:TLX ("T el") and Tempilet:TLX ("T one"). They should not be confused with Tempilet:TLX ("T eye"), which is an alias for Tempilet:TLX.
{{Tla}} works exactly like {{tl}} but allows displaying alternative label text (link label).
{{Tlg}} can display parameters for the template.
Examples
A short example of its use:
Other longer examples:
| Code | Result | Notes |
|---|---|---|
{{tl|Void}} |
{{Void}} |
Standard usage |
{{tls|Example}} |
Tempilet:Tls | For templates that should be substituted |
{{tl2|X1}} |
{{X1}} |
This formats the link to show how it would look in code (i.e., monospace font) |
{{tl2|sister=M:|3x}} |
{{3x}} |
Same as above, for templates on another Wikimedia project (in this example, Meta, using m:). See Interwiki codes. |
{{tl2|sister=wikibooks|lang=de:|WP}} |
{{WP}} |
For templates on another language project |
{{tl|1==)}} |
{{=)}} |
Use the format {{tl|1=templatename}} if the template contains template coding characters such as {{=)}} or {{!}} |
TemplateData
TemplateData for Template link
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template name | 1 | Positional parameter: the template name without the namespace prefix “Template:”, which is added automatically | Template | required |
See also
- Tempilet:Tiw
- Tempilet:Tiw
- Tempilet:Tiw to produce a [t]emplate [l]ink with a single [p]arameter
- Tempilet:Tiw to produce a [t]emplate [l]ink with an e[x]panded number of parameters
- Tempilet:Tiw to produce a [t]emplate [l]ink that's [s]ubst:ituted, with a single [p]arameter
- Tempilet:Tiw
- Tempilet:Tiw, tl or tlp in any namespace
- Tempilet:Lcs
- Tempilet:Tiw to produce a [t]emplate [l]ink to a template [r]edirect