Teamplaid:Tl2
{{[[:Teamplaid:{{{1}}}|{{{1}}}]]}}
<code>-styled {{Tl}} that can link to sister projects. |
This is the {{Tl2}} template.
{{Tl2}} is similar to {{Tl}}. Tl stands for Template link. {{Tl2}} 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.
{{Tl2}} differs from {{Tl}} in that it displays with a wider, monospaced text style (like {{Tlx}}) 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
deasaich{{Tlx}} displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.
Usage
deasaich- {{Tl2|template_name}}
- equivalent to {{Tl|template_name}}
- {{Tl2 |sister=sister_id |template_name}}
- to display a template from a sister project (e.g. {{Tl2 |sister=V |template_name}} for Wikiversity)
- {{Tl2 |lang=lang_id |sister=sister_id |template_name}}
- to display a template from a sister project in another language (e.g. {{Tl2 |lang=fr |sister=V |template_name}} for a template from the French Wikisource project)
Examples
deasaichCode | Result |
---|---|
{{Tl|x0}}
|
{{x0}} |
{{Tl2|x1}}
|
{{x1}}
|
{{Tl2|sister=M|3x}}
|
{{3x}}
|
{{Tl2|sister=wikibooks|lang=de|WP}}
|
{{WP}}
|
See also
deasaich- Teamplaid:Tl2 (ceanglaichean deasaich)
- Teamplaid:Tl (ceanglaichean deasaich)
- Teamplaid:Tlp (ceanglaichean deasaich) to produce a [t]emplate [l]ink with single [p]arameter.
- Teamplaid:Tlx (ceanglaichean deasaich) to produce a [t]emplate [l]ink with e[x]tended number of parameters.
- Teamplaid:Tlsp (ceanglaichean deasaich) to produce a [t]emplate [l]ink that's [s]ubst:ituted, with a single [p]arameter.
- Teamplaid:Lts (ceanglaichean deasaich)
- Teamplaid:Tlu (ceanglaichean deasaich) , Tl or Tlp in any namespace.
- (deasaich deasbaireachd ceanglaichean eachdraidh)
- Teamplaid:Xpd (ceanglaichean deasaich) to e[xp]an[d] (i.e. demonstrate) a template in situ.
The above documentation is transcluded from Teamplaid:Tl2/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |