Template:Tl/doc: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
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:
-----
-----
---->
---->
{{Interwikitmp-grp|
V=D|cat=|Tl/doc|{{PAGENAME}}
}}</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>
| {{[[Template:X0|x0]]}}
| {{x0}}
|-
|-
| <code><nowiki>{{Tl2|x1}}</nowiki></code>
| <code><nowiki>{{Tl2|x1}}</nowiki></code>
Line 71: Line 70:


== See also ==
== See also ==
* {{Ltswpd|tl}}&nbsp; &nbsp;&mdash; links and edit history of the Tl template.
* {{Ltswpd|tl}}&nbsp; &nbsp;links and edit history of the Tl template.
* {{Ltswpd|tl2}} &nbsp;&mdash; links and edit history of the Tl2 template.
* {{Ltswpd|tl2}} &nbsp;links and edit history of the Tl2 template.
* {{Ltswpd|tlp}} &nbsp;&mdash; Template link, with single parameter.
* {{Ltswpd|tlp}} &nbsp;Template link, with single parameter.
* {{Ltswpd|tlx}} &nbsp;&mdash; Template link, up to three parameters.
* {{Ltswpd|tlx}} &nbsp;Template link, up to three parameters.
* {{Ltswpd|tlsp}} &mdash; Template link, ditto subst'ed.
* {{Ltswpd|tlsp}} Template link, ditto subst'ed.
* {{Ltswpd|lts}} &nbsp;&mdash; see Lts discussion for more variants.
* {{Ltswpd|lts}} &nbsp;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|{{interwikitmp-grp|V=1 |Tl }}}}
{{#ifeq:{{PAGENAME}}|Tl|}}
{{#ifeq:{{PAGENAME}}|Tl2|{{interwikitmp-grp|V=6|cat=|Tl2}}[[Category:Interwiki link templates|Tl2]]}}
{{#ifeq:{{PAGENAME}}|Tl2|}}
<!-- ADD CATEGORIES for calling templates BELOW THIS LINE -->
<!-- ADD CATEGORIES for calling templates BELOW THIS LINE -->
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Typing-aid templates|{{PAGENAME}}]]
<!--- ------------------------------------------------------------------------------ -----
<!--- ------------------------------------------------------------------------------ -----
----- 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:Шаблон:Ш]] &nbsp;  
[[bg:Шаблон:Ш]] &nbsp;  
[[ca:Plantilla:Tl]] &nbsp;  
[[ca:Plantilla:Tl]] &nbsp;  
[[cs:Šablona:Šablona]] &nbsp;  
&nbsp;  
[[eo:Ŝablono:Ŝ]] &nbsp;  
&nbsp;  
[[es:Plantilla:Template link]] &nbsp;  
[[es:Plantilla:Template link]] &nbsp;  
[[fa:الگو:الگوی]] &nbsp;  
[[fa:الگو:الگوی]] &nbsp;  
[[fi:Malline:Malline]] &nbsp;  
&nbsp;  
[[fr:Modèle:M]] &nbsp;  
&nbsp;  
[[he:תבנית:תב]] &nbsp;  
[[he:תבנית:תב]] &nbsp;  
[[ia:Patrono:Tl]] &nbsp;  
[[ia:Patrono:Tl]] &nbsp;  
Line 112: Line 109:
[[pih:Template:Tl]] &nbsp;  
[[pih:Template:Tl]] &nbsp;  
[[pl:Szablon:S]] &nbsp;  
[[pl:Szablon:S]] &nbsp;  
[[pt:Predefinição:Link para predefinição]] &nbsp;  
&nbsp;  
[[ru:Шаблон:Tl]] &nbsp;  
[[ru:Шаблон:Tl]] &nbsp;  
[[sl:Predloga:Tl]] &nbsp;  
[[sl:Predloga:Tl]] &nbsp;  
[[sv:Mall:Mall]] &nbsp;  
&nbsp;  
[[th:แม่แบบ:Tl]] &nbsp;  
[[th:แม่แบบ:Tl]] &nbsp;  
[[uk:Шаблон:Tl]] &nbsp;  
&nbsp;  
[[vi:Tiêu bản:Tl]] &nbsp;  
[[vi:Tiêu bản:Tl]] &nbsp;  
[[zh:Template:Tl]] &nbsp;  
[[zh:Template:Tl]] &nbsp;  
Line 132: Line 129:
[[bg:Шаблон:Ш2???]] &nbsp;  
[[bg:Шаблон:Ш2???]] &nbsp;  
[[ca:Plantilla:Tl2???]] &nbsp;  
[[ca:Plantilla:Tl2???]] &nbsp;  
[[cs:Šablona:Šablona2???]] &nbsp;  
&nbsp;  
[[eo:Ŝablono:Ŝ2???]] &nbsp;  
&nbsp;  
[[es:Plantilla:Template link2???]] &nbsp;  
[[es:Plantilla:Template link2???]] &nbsp;  
[[fa:الگو:الگوی????]] &nbsp;  
[[fa:الگو:الگوی????]] &nbsp;  
[[fi:Malline:Malline2???]] &nbsp;  
&nbsp;  
[[fr:Modèle:M2???]] &nbsp;  
&nbsp;  
[[he:תבנית:תב????]] &nbsp;  
[[he:תבנית:תב????]] &nbsp;  
[[ia:Patrono:Tl2???]] &nbsp;  
[[ia:Patrono:Tl2???]] &nbsp;  
Line 148: Line 145:
[[pih:Template:Tl2???]] &nbsp;  
[[pih:Template:Tl2???]] &nbsp;  
[[pl:Szablon:S2???]] &nbsp;  
[[pl:Szablon:S2???]] &nbsp;  
[[pt:Predefinição:Link para predefinição2???]] &nbsp;  
&nbsp;  
[[ru:Шаблон:Tl2???]] &nbsp;  
[[ru:Шаблон:Tl2???]] &nbsp;  
[[sl:Predloga:Tl2???]] &nbsp;  
[[sl:Predloga:Tl2???]] &nbsp;  
[[sv:Mall:Mall2???]] &nbsp;  
&nbsp;  
[[th:แม่แบบ:Tl2???]] &nbsp;  
[[th:แม่แบบ:Tl2???]] &nbsp;  
[[uk:Шаблон:Tl2???]] &nbsp;  
&nbsp;  
[[vi:Tiêu bản:Tl2???]] &nbsp;  
[[vi:Tiêu bản:Tl2???]] &nbsp;  
[[zh:Template:Tl2???]] &nbsp;  
[[zh:Template:Tl2???]] &nbsp;  
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}}
[[de:Vorlage:Tl]] &nbsp;  
&nbsp;  
[[eo:Ŝablono:Ŝ2/doc]] &nbsp;  
&nbsp;  
[[es:Plantilla:Template link/doc]] &nbsp;  
[[es:Plantilla:Template link/doc]] &nbsp;  
[[fa:الگو:الگوی/doc]] &nbsp;  
[[fa:الگو:الگوی/doc]] &nbsp;  
[[fi:Malline:Malline/doc]] &nbsp;  
&nbsp;  
[[fr:Modèle:M/doc]] &nbsp;  
&nbsp;  
[[he:תבנית:תב/doc]] &nbsp;  
[[he:תבנית:תב/doc]] &nbsp;  
[[ia:Patrono:Tl/doc]] &nbsp;  
[[ia:Patrono:Tl/doc]] &nbsp;  

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:WPTSP loose ends       fa:الگو:الگوی/doc       he:תבנית:תב/doc   ia:Patrono:Tl/doc     ka:თარგი:Tl/doc   ko:틀:Tl2???   kw:Template:Viz/doc   or:Template:Tl/doc