Template:Tl View history

No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}
<includeonly><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Templates#Substitution|subst]]:}}{{#ifeq:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}||<!--
|{{#switch:{{{2|}}}
this is intended to be either a page in the main namespace or in the template namespace
  |NOLINK
-->{{#ifeq:{{{1|{{FULLPAGENAME}}}}}|:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!--
  |nl=<nowiki>{{</nowiki>{{{1|}}}<nowiki>}}</nowiki>
this is intended to be in the main namespace
  |{{red|ERROR: incorrect syntax in <nowiki>{{</nowiki>[[template:tl|Tl]]<nowiki>}}</nowiki> usage - unrecognized {{Para||{{{2|}}} }} parameter}}}}
-->|<nowiki>:</nowiki>[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{PAGENAME}}}}}|{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}]]<!--
|<nowiki>{{</nowiki>{{#ifeq: {{padleft:|1|{{{1|}}}}}|:|[[{{{1|}}}|{{{1|}}}]]|{{#if:{{NAMESPACE:{{{1|}}}}}|[[{{{1|}}}]]|[[{{ns:Template}}:{{{1|}}}|{{{1|}}}]]}}}}<nowiki>}}</nowiki>}}</includeonly><noinclude>
this is intended to be in the template namespace
{{documentation}}
-->|[[:{{{LANG|}}}{{{SISTER|}}}Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]}}<!--
<!-- Categories and interwikis go on the /doc subpage. -->
namespace was included
-->|[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{FULLPAGENAME}}}}}|{{{1|{{FULLPAGENAME}}}}}]]
}}<nowiki>}}</nowiki></includeonly><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 22:32, 17 February 2016

Documentation icon Template documentation[view] [edit] [history] [purge]


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

[[Category:Internal link templates|Tl]

The above documentation is transcluded from Template:Tl/doc.
Please add categories to the /doc subpage.
Subpages of this template.