Difference between revisions of "Template:Tlx"
(Created page with "<includeonly><code><nowiki>{{</nowiki>{{#if:{{{subst|}}}|subst:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- -->{{#if:{{{2|}}}| ...") |
|||
Line 1: | Line 1: | ||
− | <includeonly><code><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- | + | <includeonly><!-- |
− | -->{{#if:{{{2|}}}| | + | --><code><!-- |
− | |{{{2}}} | + | --><nowiki>{{</nowiki>{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- |
− | }}<!-- | + | -->[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- |
− | -->{{#if:{{{3|}}}| | + | -->{{#if:{{{2|}}} ||{{{2}}}}}<!-- |
− | |{{{3}}} | + | -->{{#if:{{{3|}}} ||{{{3}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{4|}}} ||{{{4}}}}}<!-- |
− | -->{{#if:{{{4|}}}| | + | -->{{#if:{{{5|}}} ||{{{5}}}}}<!-- |
− | |{{{4}}} | + | -->{{#if:{{{6|}}} ||{{{6}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{7|}}} ||{{{7}}}}}<!-- |
− | -->{{#if:{{{5|}}}| | + | -->{{#if:{{{8|}}} ||{{{8}}}}}<!-- |
− | |{{{5}}} | + | -->{{#if:{{{9|}}} ||{{{9}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{10|}}} ||{{{10}}}}}<!-- |
− | -->{{#if:{{{6|}}}| | + | -->{{#if:{{{11|}}} ||{{{11}}}}}<!-- |
− | |{{{6}}} | + | -->{{#if:{{{12|}}} ||{{{12}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{13|}}} ||{{{13}}}}}<!-- |
− | -->{{#if:{{{7|}}}| | + | -->{{#if:{{{14|}}} ||{{{14}}}}}<!-- |
− | |{{{7}}} | + | -->{{#if:{{{15|}}} ||{{{15}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{16|}}} ||{{{16}}}}}<!-- |
− | -->{{#if:{{{8|}}}| | + | -->{{#if:{{{17|}}} ||{{{17}}}}}<!-- |
− | |{{{8}}} | + | -->{{#if:{{{18|}}} ||{{{18}}}}}<!-- |
− | }}<!-- | + | -->{{#if:{{{19|}}} ||{{{19}}}}}<!-- |
− | -->{{#if:{{{9|}}}| | + | -->{{#if:{{{20|}}} ||{{{20}}}}}<!-- |
− | |{{{ | + | -->{{#if:{{{21|}}} ||''...''}}<!-- |
− | }}<!-- | + | --><nowiki>}}</nowiki><!-- |
− | -->{{#if:{{{ | + | --></code><!-- |
− | |{{{ | + | --></includeonly><noinclude> |
− | }}<!-- | + | {{Documentation}}</noinclude> |
− | -->{{#if:{{{ | ||
− | |{{{ | ||
− | }}<!-- | ||
− | -->{{#if:{{{ | ||
− | |''...'' | ||
− | }}<nowiki>}}</nowiki></code></includeonly><noinclude> | ||
− | {{Documentation}} | ||
− | |||
− | </noinclude> |
Latest revision as of 11:28, 14 May 2020
This template is similar to {{tl}}, but can take up to 11 parameters separated by “|”.
Usage
(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)
{{tlx|Template|first parameter|second parameter|third parameter|...|tenth parameter}}
produces:{{Template|first parameter|second parameter|third parameter|...|tenth parameter}}
When you want to indicate setting a value to one or more parameters, you would normally use the equals-sign ("="). This doesn't work here; instead use Template:Tlf, like so:
{{tlx|Template|first{{=}}first value|second|third{{=}}third value}}
produces:{{Template|first=first value|second|third=third value}}
For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in Template:Tag tags. When you do, you don't need to replace equals-signs. For instance: