Template:Tl/doc: Difference between revisions
Jump to navigation
Jump to search
(New page: <includeonly>:''This template documentation is <!--- ----- ---->transcluded from Template:Tl/doc'' <!--- ----- ---->[<span class="plainlinks">[{{f...) |
m (robot Removing: de, eo, fi, fr) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
----- | ----- | ||
----> | ----> | ||
}}</noinclude> | }}</noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
==Documentation== | == Documentation == | ||
{{Tlx|Tl}} and {{Tl|Tl2}} are simple [[w:macro|macro]] [[m:Help:template|templates]] used to display a template name as a link. '''Tl''' stands for '''T'''emplate '''l'''ink. | {{Tlx|Tl}} and {{Tl|Tl2}} are simple [[w:macro|macro]] [[m:Help:template|templates]] used to display a template name as a link. '''Tl''' stands for '''T'''emplate '''l'''ink. | ||
Line 52: | Line 51: | ||
|- | |- | ||
| <code><nowiki>{{Tl|x0}}</nowiki></code> | | <code><nowiki>{{Tl|x0}}</nowiki></code> | ||
| {{ | | {{x0}} | ||
|- | |- | ||
| <code><nowiki>{{Tl2|x1}}</nowiki></code> | | <code><nowiki>{{Tl2|x1}}</nowiki></code> | ||
Line 71: | Line 70: | ||
== See also == | == See also == | ||
* {{Ltswpd|tl}} | * {{Ltswpd|tl}} — links and edit history of the Tl template. | ||
* {{Ltswpd|tl2}} | * {{Ltswpd|tl2}} — links and edit history of the Tl2 template. | ||
* {{Ltswpd|tlp}} | * {{Ltswpd|tlp}} — Template link, with single parameter. | ||
* {{Ltswpd|tlx}} | * {{Ltswpd|tlx}} — Template link, up to three parameters. | ||
* {{Ltswpd|tlsp}} | * {{Ltswpd|tlsp}} — Template link, ditto subst'ed. | ||
* {{Ltswpd|lts}} | * {{Ltswpd|lts}} — see Lts discussion for more variants. | ||
* {{Ltswpd|tlu}} - like {{tlx|tl}} / {{tlx|tlp}} for any namespace. | * {{Ltswpd|tlu}} - like {{tlx|tl}} / {{tlx|tlp}} for any namespace. | ||
* {{Lcs|Internal link templates}} | * {{Lcs|Internal link templates}} | ||
Line 83: | Line 82: | ||
----- | ----- | ||
----> | ----> | ||
{{#ifeq:{{PAGENAME}}|Tl| | {{#ifeq:{{PAGENAME}}|Tl|}} | ||
{{#ifeq:{{PAGENAME}}|Tl2| | {{#ifeq:{{PAGENAME}}|Tl2|}} | ||
<!-- ADD CATEGORIES for calling templates BELOW THIS LINE --> | <!-- ADD CATEGORIES for calling templates BELOW THIS LINE --> | ||
<!--- ------------------------------------------------------------------------------ ----- | <!--- ------------------------------------------------------------------------------ ----- | ||
----- ADD INTERWIKIS BELOW THIS LINE By calling templates or this page's interwiki's ----- | ----- ADD INTERWIKIS BELOW THIS LINE By calling templates or this page's interwiki's ----- | ||
Line 96: | Line 93: | ||
[[bg:Шаблон:Ш]] | [[bg:Шаблон:Ш]] | ||
[[ca:Plantilla:Tl]] | [[ca:Plantilla:Tl]] | ||
| |||
| |||
[[es:Plantilla:Template link]] | [[es:Plantilla:Template link]] | ||
[[fa:الگو:الگوی]] | [[fa:الگو:الگوی]] | ||
| |||
| |||
[[he:תבנית:תב]] | [[he:תבנית:תב]] | ||
[[ia:Patrono:Tl]] | [[ia:Patrono:Tl]] | ||
Line 112: | Line 109: | ||
[[pih:Template:Tl]] | [[pih:Template:Tl]] | ||
[[pl:Szablon:S]] | [[pl:Szablon:S]] | ||
| |||
[[ru:Шаблон:Tl]] | [[ru:Шаблон:Tl]] | ||
[[sl:Predloga:Tl]] | [[sl:Predloga:Tl]] | ||
| |||
[[th:แม่แบบ:Tl]] | [[th:แม่แบบ:Tl]] | ||
| |||
[[vi:Tiêu bản:Tl]] | [[vi:Tiêu bản:Tl]] | ||
[[zh:Template:Tl]] | [[zh:Template:Tl]] | ||
Line 132: | Line 129: | ||
[[bg:Шаблон:Ш2???]] | [[bg:Шаблон:Ш2???]] | ||
[[ca:Plantilla:Tl2???]] | [[ca:Plantilla:Tl2???]] | ||
| |||
| |||
[[es:Plantilla:Template link2???]] | [[es:Plantilla:Template link2???]] | ||
[[fa:الگو:الگوی????]] | [[fa:الگو:الگوی????]] | ||
| |||
| |||
[[he:תבנית:תב????]] | [[he:תבנית:תב????]] | ||
[[ia:Patrono:Tl2???]] | [[ia:Patrono:Tl2???]] | ||
Line 148: | Line 145: | ||
[[pih:Template:Tl2???]] | [[pih:Template:Tl2???]] | ||
[[pl:Szablon:S2???]] | [[pl:Szablon:S2???]] | ||
| |||
[[ru:Шаблон:Tl2???]] | [[ru:Шаблон:Tl2???]] | ||
[[sl:Predloga:Tl2???]] | [[sl:Predloga:Tl2???]] | ||
| |||
[[th:แม่แบบ:Tl2???]] | [[th:แม่แบบ:Tl2???]] | ||
| |||
[[vi:Tiêu bản:Tl2???]] | [[vi:Tiêu bản:Tl2???]] | ||
[[zh:Template:Tl2???]] | [[zh:Template:Tl2???]] | ||
Line 163: | Line 160: | ||
----- ----- ADD Interwiki's BELOW this line for this 'Tl/doc page', not the working templates ---- | ----- ----- ADD Interwiki's BELOW this line for this 'Tl/doc page', not the working templates ---- | ||
---->{{WPTSP loose ends}} | ---->{{WPTSP loose ends}} | ||
| |||
| |||
[[es:Plantilla:Template link/doc]] | [[es:Plantilla:Template link/doc]] | ||
[[fa:الگو:الگوی/doc]] | [[fa:الگو:الگوی/doc]] | ||
| |||
| |||
[[he:תבנית:תב/doc]] | [[he:תבנית:תב/doc]] | ||
[[ia:Patrono:Tl/doc]] | [[ia:Patrono:Tl/doc]] |
Latest revision as of 14:20, 10 April 2011
}}
Documentation
{{Tl}} and {{Tl2}} are simple macro templates used to display a template name as a link. Tl stands for Template link.
- Tl2 differs in that it displays an arguably clearer result like {{Tlx}}, and also like takes the named parameters 'SISTER=xx' and 'LANG=ll', so that it may also be used to list and link to templates on other English and non-English language sister projects.
- related
- Template:Tl2 displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call.
Usage
{{Tl|template name to display}} and {{Tl2|template name to display}} -- local link, just like Tl. or {{Tl2|SISTER=V:|template name to display}} -- displays a template on Wikiversity or {{Tl2|LANG=fr.|SISTER=wikisource|template name to display}} -- displays a template on the French Wikisource sister project.
Example
Code | Result |
---|---|
{{Tl|x0}}
|
Template:X0 |
{{Tl2|x1}}
|
{{x1}} |
{{Tl2|SISTER=M:|3x}}
|
{{3x}} |
{{Tl2|SISTER=wikibooks|LANG=de:|WP}}
|
{{WP}} |
See also
- Template:Ltswpd — links and edit history of the Tl template.
- Template:Ltswpd — links and edit history of the Tl2 template.
- Template:Ltswpd — Template link, with single parameter.
- Template:Ltswpd — Template link, up to three parameters.
- Template:Ltswpd — Template link, ditto subst'ed.
- Template:Ltswpd — see Lts discussion for more variants.
- Template:Ltswpd - like {{tl}} / {{tlp}} for any namespace.
Template:WPTSP loose ends fa:الگو:الگوی/doc he:תבנית:תב/doc ia:Patrono:Tl/doc ka:თარგი:Tl/doc ko:틀:Tl2??? kw:Template:Viz/doc or:Template:Tl/doc