Template:Tl View history

m (1 revision)
m (usa:Template:Tl سے 18 نسخے درآمد کیے گئے: Importing Templates from USA)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><code><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!--
<includeonly><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Templates#Substitution|subst]]:}}{{#ifeq:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}||<!--
-->{{#if:{{{2|}}}|
this is intended to be either a page in the main namespace or in the template namespace
&#124;{{{2}}}
-->{{#ifeq:{{{1|{{FULLPAGENAME}}}}}|:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}<!--
}}<!--
this is intended to be in the main namespace
-->{{#if:{{{3|}}}|
-->|<nowiki>:</nowiki>[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{PAGENAME}}}}}|{{PAGENAME:{{{1|{{FULLPAGENAME}}}}}}}]]<!--
&#124;{{{3}}}
this is intended to be in the template namespace
}}<!--
-->|[[:{{{LANG|}}}{{{SISTER|}}}Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]}}<!--
-->{{#if:{{{4|}}}|
namespace was included
&#124;{{{4}}}
-->|[[:{{{LANG|}}}{{{SISTER|}}}{{{1|{{FULLPAGENAME}}}}}|{{{1|{{FULLPAGENAME}}}}}]]
}}<!--
}}<nowiki>}}</nowiki></includeonly><noinclude>
-->{{#if:{{{5|}}}|
{{Documentation}}
&#124;{{{5}}}
}}<!--
-->{{#if:{{{6|}}}|
&#124;{{{6}}}
}}<!--
-->{{#if:{{{7|}}}|
&#124;{{{7}}}
}}<!--
-->{{#if:{{{8|}}}|
&#124;{{{8}}}
}}<!--
-->{{#if:{{{9|}}}|
&#124;{{{9}}}
}}<!--
-->{{#if:{{{10|}}}|
&#124;{{{10}}}
}}<!--
-->{{#if:{{{11|}}}|
&#124;{{{11}}}
}}<!--
-->{{#if:{{{12|}}}|
&#124;''...''
}}<nowiki>}}</nowiki></code></includeonly><noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 12:53, 30 April 2020

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

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