Template:Template link/doc
| This is a documentation subpage for Template:Template link It contains usage information, categories and other content that is not part of the original template page. |
The template link template be simple macro template wey dey show template name as link wey braces surround am. This one dey make the template name show like code instead of actually calling the template. The main reason for using am be for instructions and documentation, where dem dey refer to template by name without running the template.
Make you note say this template get aliases "tee-el" Template:TLX and "tee-one" Template:TLX. Make you no mix am with "tee-eye" Template:TLX, because that one be alias for Template:TLX.
{{Tla}} dey work same way as {{tl}}, but e get extra option to show different label text (link label). {{Tlg}} fit include parameters wey dey inside the template.
Examples
[edit source]Small example of how dem dey use am be:
Other longer examples:
| Code | Result | Notes |
|---|---|---|
{{tl|Void}} |
{{Void}} | Normal usage |
{{tls|Example}} |
{{subst:Example}} | For templates wey dem suppose substitute |
{{tl2|X1}} |
Template:Tl2 | This format the link make e show how e go look for code (that be monospace font) |
{{tl2|sister=M:|3x}} |
Template:Tl2 | Same as above, but this one be for templates from another Wikimedia project (for this example, Meta, using m:). See Interwiki codes. |
{{tl2|sister=wikibooks|lang=de:|WP}} |
Template:Tl2 | For templates on another language project |
{{tl|1==)}} |
{{=)}} | Use this format {{tl|1=templatename}} if the template get template coding characters like {{=)}} or {{!}} |
TemplateData
[edit source]TemplateData for Template link
This template dey show template name as link wey braces surround am, so e show how the template name go dey used for code. The main use be for instructions and documentation.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template name | 1 | Positional parameter: the template name without the namespace prefix “Template:”, because the prefix go add itself automatically | Template | required |
See also
[edit source]- Template:Tiw
- Template:Tiw
- Template:Tiw to make a [t]emplate [l]ink with one [p]arameter
- Template:Tiw to make a [t]emplate [l]ink with e[x]panded number of parameters
- Template:Tiw to make a [t]emplate [l]ink wey get [s]ubst: substitution, with one [p]arameter
- Template:Tiw
- Template:Tiw, tl or tlp for any namespace
- Template:Lcs
- Template:Tiw to make a [t]emplate [l]ink to template [r]edirect