Citakan:Tl2/doc
Iyeu mangrupa subhalaman dokuméntasi pikeun Citakan:Tl2. Citakan ieu ngandung inpormasi pamakéan, kategori jeung eusi lianna nu teu bagian tina citakan kaca. |
<code>-styled Citakan:Tlpad that can link to sister projects. |
This is the Citakan:Tlpad template.
Citakan:Tpad is similar to Citakan:Tlpad. Tl stands for Template link. Citakan:Tpad is a macro template used to display 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.
Citakan:Tpad differs from Citakan:Tpad in that it displays with a wider, monospaced text style (like Citakan:Plaincode) and also takes the named parameters |sister=
and |lang=
so that it may also be used to list and link templates on other English and non-English-language sister projects.
Related template
[édit sumber]Citakan:Tlpad displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.
Usage
[édit sumber]- {{tl2|template_name}}
- equivalent to Citakan:Plaincode
- {{tl2 |sister=sister_id |template_name}}
- to display a template from a sister project (e.g. Citakan:Plaincode for Wikiversity)
- {{tl2 |lang=lang_id |sister=sister_id |template_name}}
- to display a template from a sister project in another language (e.g. Citakan:Plaincode for a template from the French Wikisource project)
Examples
[édit sumber]Code | Result |
{{tl|x0}}
| {{x0}} |
{{tl2|x1}}
| {{x1}}
|
{{tl2|sister=M|3x}}
| {{3x}}
|
{{tl2|sister=wikibooks|lang=de|WP}}
| {{WP}}
|
See also
[édit sumber]- Template:tl2 (sawala, tumbu, édit)
- Template:tl (sawala, tumbu, édit)
- Template:tlp (sawala, tumbu, édit) to produce a [t]emplate [l]ink with single [p]arameter.
- Template:tlx (sawala, tumbu, édit) to produce a [t]emplate [l]ink with e[x]tended number of parameters.
- Template:tlsp (sawala, tumbu, édit) to produce a [t]emplate [l]ink that's [s]ubst:ituted, with a single [p]arameter.
- Template:lts (sawala, tumbu, édit)
- Template:tlu (sawala, tumbu, édit), tl or tlp in any namespace.
- Template:xpd (sawala, tumbu, édit) to e[xp]an[d] (i.e. demonstrate) a template in situ.