Template:Tl/doc: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(New page: {{Documentation subpage}} <includeonly>{{high-use| 600,000+ }}</includeonly> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> __NOTOC__ This is the {{tl|tl}} templa...) |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<includeonly>{{ | <includeonly>{{pp-template|small=yes}}</includeonly> | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
__NOTOC__ | __NOTOC__ | ||
| Line 7: | Line 7: | ||
First a short example. This code: <code><nowiki>{{tl|example}}</nowiki></code> renders like this: {{tl|example}} | First a short example. This code: <code><nowiki>{{tl|example}}</nowiki></code> renders like this: {{tl|example}} | ||
'''Tl''' stands for '''T'''emplate '''l'''ink. {{tl|tl}} is a simple | '''Tl''' stands for '''T'''emplate '''l'''ink. {{tl|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 === | === Related templates === | ||
{{tl2|tl2}} differs in that it displays an arguably clearer result like {{tlx|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''. | <!--{{tl2|tl2}} differs in that it displays an arguably clearer result like {{tlx|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|tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call. | {{tlx|tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call. | ||
| Line 19: | Line 19: | ||
<pre> | <pre> | ||
{{Tl|template name to display}} | {{Tl|template name to display}} | ||
</pre> | </pre> | ||
| Line 34: | Line 27: | ||
! Result | ! Result | ||
|- | |- | ||
| <code><nowiki>{{Tl| | | <code><nowiki>{{Tl|bra}}</nowiki></code> | ||
| {{[[Template: | | {{[[Template:Bra|Bra]]}} | ||
|} | |} | ||
=== See also === | === See also === | ||
* {{tl|tl2}} – Template link, up to three parameters and interwiki links. | <!--* {{tl|tl2}} – Template link, up to three parameters and interwiki links. | ||
* {{tl|tlp}} – Template link, with single parameter. | * {{tl|tlp}} – Template link, with single parameter.--> | ||
* {{tl|tlx}} – Template link, | * {{tl|tlx}} – Template link, with several parameters<!-- and interwiki links-->. | ||
* {{tl|tlsp}} – Template link, ditto subst'ed. | <!--* {{tl|tlsp}} – Template link, ditto subst'ed. | ||
* {{tl|lts}} – See Lts discussion for more variants. | * {{tl|lts}} – See Lts discussion for more variants. | ||
* {{tl|tlu}} – Like {{tlx|tl}} / {{tlx|tlp}} for any namespace. | * {{tl|tlu}} – Like {{tlx|tl}} / {{tlx|tlp}} for any namespace. | ||
* {{tl|tn}} – Same as tl, but shows the braces as part of the link. | * {{tl|tn}} – Same as tl, but shows the braces as part of the link. | ||
* {{tl|evd}} – Show live example | * {{tl|evd}} – Show live example | ||
* {{tl|tlc}}, {{tl|tld}} and {{tl|tlf}} – Template names without links. | * {{tl|tlc}}, {{tl|tld}} and {{tl|tlf}} – Template names without links.--> | ||
* [[:Category:Internal link templates]] | * [[:Category:Internal link templates]] | ||
Latest revision as of 23:37, 3 June 2008
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
{{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}}
Example
| Code | Result |
|---|---|
{{Tl|bra}}
|
{{Bra}} |
See also
- {{Tlx}} – Template link, with several parameters.
- Category:Internal link templates