Template:Tl: Difference between revisions

Jump to navigation Jump to search
mp>PakWalker
No edit summary
 
(Fulfilling edit request by Sarang.)
Line 1: Line 1:
<code>{{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}}}</code><noinclude>
<noinclude>{{protected template}}
 
</noinclude>{{T/main|{{{1|}}}
This is a copy of [[wp:Template:Tl|Template:Tl]] from [[Wikipedia]].
|{{{2|}}}
Use it to display a template name as a link, which can also be done by preceding the full path (template:some template) with a colon inside conventional link brackets. Usage:
|{{{3|{{{lang|}}}}}}
<pre>{{Tl|template name to display}}</pre>
|{{{4|}}}
Also probably plays nice with up to six other parameters, as shown:
|{{{5|}}}
<pre>{{tl|rquote|left}}</pre>
|incl={{{incl|{{{i|3}}}}}}
yields {{tl|rquote|left}}. You might need to escape the character = somehow, but that's your problem.
|code={{{code|}}}
 
|link={{{link|}}}
{{DEFAULTSORT:Tl}}
|case={{{case|}}}
[[Category:Templates]]
|i18n={{{i18n|}}}
|parm={{{parm|}}}
|full={{{full|}}}
|style={{{style|}}}
}}<noinclude>
{{documentation|Template:T/doc}}
</noinclude>
</noinclude>