Template:Template link/doc: Difference between revisions
Content deleted Content added
Cutting away more stuff that belongs in tl2's docs. |
Removed all the nbsp's among the interwiki links. Weird. |
||
Line 70: | Line 70: | ||
[[Category:Internal link templates|{{PAGENAME}}]] |
[[Category:Internal link templates|{{PAGENAME}}]] |
||
[[ar:قالب:قا]] |
[[ar:قالب:قا]] |
||
[[az:Şablon:ŞK]] |
[[az:Şablon:ŞK]] |
||
[[bg:Шаблон:Ш]] |
[[bg:Шаблон:Ш]] |
||
[[ca:Plantilla:Tl]] |
[[ca:Plantilla:Tl]] |
||
[[cs:Šablona:Šablona]] |
[[cs:Šablona:Šablona]] |
||
[[da:Skabelon:Vis]] |
[[da:Skabelon:Vis]] |
||
[[eo:Ŝablono:Ŝ]] |
[[eo:Ŝablono:Ŝ]] |
||
[[es:Plantilla:Template link]] |
[[es:Plantilla:Template link]] |
||
[[fa:الگو:الگوی]] |
[[fa:الگو:الگوی]] |
||
[[fi:Malline:Malline]] |
[[fi:Malline:Malline]] |
||
[[fr:Modèle:M]] |
[[fr:Modèle:M]] |
||
[[he:תבנית:תב]] |
[[he:תבנית:תב]] |
||
[[ia:Patrono:Tl]] |
[[ia:Patrono:Tl]] |
||
[[ja:Template:Tl]] |
[[ja:Template:Tl]] |
||
[[ka:თარგი:Tl]] |
[[ka:თარგი:Tl]] |
||
[[ko:틀:Tl]] |
[[ko:틀:Tl]] |
||
[[kw:Template:Viz]] |
[[kw:Template:Viz]] |
||
[[my:Template:Tl]] |
[[my:Template:Tl]] |
||
[[or:Template:Tl]] |
[[or:Template:Tl]] |
||
[[pih:Template:Tl]] |
[[pih:Template:Tl]] |
||
[[pl:Szablon:S]] |
[[pl:Szablon:S]] |
||
[[pt:Predefinição:Link para predefinição]] |
[[pt:Predefinição:Link para predefinição]] |
||
[[ru:Шаблон:Tl]] |
[[ru:Шаблон:Tl]] |
||
[[sl:Predloga:Tl]] |
[[sl:Predloga:Tl]] |
||
[[sv:Mall:Mall]] |
[[sv:Mall:Mall]] |
||
[[th:แม่แบบ:Tl]] |
[[th:แม่แบบ:Tl]] |
||
[[tr:Şablon:Tl]] |
[[tr:Şablon:Tl]] |
||
[[uk:Шаблон:Tl]] |
[[uk:Шаблон:Tl]] |
||
[[vi:Tiêu bản:Tl]] |
[[vi:Tiêu bản:Tl]] |
||
[[zh:Template:Tl]] |
[[zh:Template:Tl]] |
||
[[zh-yue:Template:Tl]] |
[[zh-yue:Template:Tl]] |
||
</includeonly> |
</includeonly> |
Revision as of 15:21, 27 March 2008
This is a documentation subpage for Template:Template link. It may contain usage information, categories and other content that is not part of the original template page. |
This is the {{tl}} template.
First a short example. This code: {{tl|example}}
renders like this: {{example}}
Tl stands for Template link. {{tl}} is a simple 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.
Related templates
{{tl2}}
differs in that it displays an arguably clearer result like {{tlx}}
, and also 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.
{{tlx}}
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}}
|
{{x0}} |
{{Tl2|x1}}
|
{{x1}} |
{{Tl2|SISTER=M:|3x}}
|
{{3x}} |
{{Tl2|SISTER=wikibooks|LANG=de:|WP}}
|
{{WP}} |
See also
- Template:tl (backlinks edit) — links and edit history of the Tl template.
- Template:tl2 (backlinks edit) — links and edit history of the Tl2 template.
- Template:tlp (backlinks edit) — Template link, with single parameter.
- Template:tlx (backlinks edit) — Template link, up to three parameters.
- Template:tlsp (backlinks edit) — Template link, ditto subst'ed.
- Template:lts (backlinks edit) — see Lts discussion for more variants.
- Template:tlu (backlinks edit) - like
{{tl}}
/{{tlp}}
for any namespace. - Template:tn (backlinks edit) - Same as tl, but shows the braces as part of the link.
- (edit talk links history)
- Template:evd (backlinks edit) - Show live example