Difference between revisions of "Template:Tl"

 
Line 1: Line 1:
&#123;&#123;[[{{ns:Template}}:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>[[Category:Internal link templates|Tl]]</noinclude>
+
{{[[{{ns:Template}}:{{{1|Tl}}}|{{{1|Tl}}}]]{{#if:{{{2|}}}|<tt>&#124;</tt>{{{2}}}}}{{#if:{{{3|}}}|<tt>&#124;</tt>{{{3}}}}}{{#if:{{{4|}}}|<tt>&#124;</tt>{{{4}}}}}{{#if:{{{5|}}}|<tt>&#124;</tt>''etc.''}}}}<noinclude>
 +
{{Template:Tl/doc}}
 +
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Revision as of 14:54, 6 December 2006

{{Tl}}

Usage

{{Tl|template name|first parameter|…}}
Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "|etc.".

Example

Code Result Remark
{{Tl|x0}} {{x0}}  
{{Tl|x1|one}} {{x1|one}}  
{{Tl|x2|one|two}} {{x2|one|two}}  
{{Tl|x3|1|2|3}} {{x3|1|2|3}}  
{{Tl|x4|1|2|3|4}} {{x4|1|2|3|etc.}} up to 3 parameters
{{Tl|x4|1|2|3&#124;4}} {{x4|1|2|3|4}} &#124; for more
{{Tl|x1|x=u}} {{x1}} = won't work
{{Tl|x1|x&#61;u}} {{x1|x=u}} &#61; is okay
{{Tl|x1|<nowiki>x=u</nowiki>}} {{x1|x=u}} sticky nowiki is okay
{{Tl|x2| |two}} {{x2|two}} empty won't work
{{Tl|x2|&#32;|two}} {{x2| |two}} &#32; is okay
{{Tl|x2|&nbsp;|two}} {{x2| |two}} &nbsp; is okay
{{Tl|x2| &#124; two}} {{x2| | two}} &#124; is okay
{{Tl|x2| {{!}} two}} {{x2| | two}} {{!}} is dubious
{{Tl|x2|2=|3=two}} {{x2|two}} empty really doesn't work
{{Tl|x2|2=one|two}} {{x2|two}} two clobbers 2=one
{{Tl|x2|3=two|2=one}} {{x2|one|two}} right to left okay