mNo edit summary |
(improving template to consider transclusion from Main namespace) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><nowiki>{{</nowiki>{{#ifeq: {{padleft:|1|{{{1|}}}}}|:|[[:{{{1|}}}|{{{1|}}}]]|[[{{ns:Template}}:{{{1|}}}|{{{1|}}}]]}}<nowiki>}}</nowiki></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> | <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> | ||
</noinclude> | </noinclude> |
Revision as of 13:44, 23 June 2015
The template link template 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. A short example is that the code:
{{tl|Example}}
- generates
- {{Example}}
More complex variations are described below.
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}} and {{tlx|Template name to display}} -- local link, just like tl. or {{tl|1==)}} -- use 1= where the template name contains an equals sign (as [[template:=)]] does).
See also
- {{tlx}}
The above documentation is transcluded from Template:Tl/doc. Please add categories to the /doc subpage. Subpages of this template. |