ފަންވަތް:Tl2
{{[[:ފަންވަތް:{{{1}}}|{{{1}}}]]}}
<code>-styled
{{tl}} that can link to sister projects. |
{{tl2}} template.
{{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.
{{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
[އުނިއިތުރު ގެންނަވާ]{{tlx}} displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.
Usage
[އުނިއިތުރު ގެންނަވާ]{{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
[އުނިއިތުރު ގެންނަވާ]Code | Result |
---|---|
{{tl|x0}}
|
{{x0}} |
{{tl2|x1}}
|
{{x1}}
|
{{tl2|sister=M|3x}}
|
{{3x}}
|
{{tl2|sister=wikibooks|lang=de|WP}}
|
{{WP}}
|
See also
[އުނިއިތުރު ގެންނަވާ]- Template:tl2 (talk, backlinks, edit)
- Template:tl (talk, backlinks, edit)
- Template:tlp (talk, backlinks, edit) to produce a [t]emplate [l]ink with single [p]arameter.
- Template:tlx (talk, backlinks, edit) to produce a [t]emplate [l]ink with e[x]tended number of parameters.
- Template:tlsp (talk, backlinks, edit) to produce a [t]emplate [l]ink that's [s]ubst:ituted, with a single [p]arameter.
- Template:lts (talk, backlinks, edit)
- Template:tlu (talk, backlinks, edit), tl or tlp in any namespace.
- ފަންވަތް:Lcs
- Template:xpd (talk, backlinks, edit) to e[xp]an[d] (i.e. demonstrate) a template in situ.
The above documentation is transcluded from ފަންވަތް:Tl2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |