Template:Tlx
Template:Interwikitmp-grp
{{[[{{#if:|{{{SISTER}}}Template|Template}}:tlx|tlx]]{{#if:template||template}}{{#if:first parameter||first parameter}}{{#if:second||second}}{{#if:third||third}}{{#if:fourth||fourth}}{{#if:fifth||fifth}}{{#if:sixth||...}}}} → {{[[{{#if:|{{{SISTER}}}Template|Template}}:template|template]]{{#if:first parameter||first parameter}}{{#if:second||second}}{{#if:third||third}}{{#if:fourth||fourth}}{{#if:fifth||fifth}}{{#if:sixth||sixth}}{{#if:seventh||...}}}}
- Purpose
- Mnemonically 'Template list expanded'... after {{[[{{#if:|{{{SISTER}}}Template|Template}}:tl|tl]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} 'Template list' Template:I2This template takes another template-name and some associated pipe-tricked parameters, and aggregates them into an 'example demonstration' of how the template-name template might be used. If given no additional parameters, it presents the same as the similar Template:Tl template-- a blue link nested in curly-braces-- the same as a user would apply the template without parameters.
Up to five parameters for the specified template are displayed as placeholders,
more parameters are shown as "|...",
for details see the talk page.
Documentation
{{Tlx}} is a generalization of Template:Tlxw, Template:Tlxw, etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.
Usage
- {{Tlx|template name}}
- {{Tlx|template name|param}}
- {{Tlx|template name|1|2|3}}
- {{Tlx|template name|1|2|3|more}}
- {{Tlx|template name|param=value}}
Up to three placeholders for parameters of the specified template
Example
- Note
- On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation. Here they may show as redlinks, as no auto-cleansing software facility exists.
Code | Result | Remark |
---|---|---|
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x0||x0}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x0|x0]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x1||x1}}{{#if:one||one}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x1|x1]]{{#if:one||one}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if:one||one}}{{#if:two||two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if:one||one}}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x3||x3}}{{#if:1|2|3||1|2|3}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x3|x3]]{{#if:1||1}}{{#if:2||2}}{{#if:3||3}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x4||x4}}{{#if:1|2|3||1|2|3}}{{#if:4||4}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x4|x4]]{{#if:1||1}}{{#if:2||2}}{{#if:3||3}}{{#if:4||4}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | up to 3 parameters |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x4||x4}}{{#if:1|2|3|4||1|2|3|4}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x4|x4]]{{#if:1||1}}{{#if:2||2}}{{#if:3|4||3|4}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | | for more |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x1||x1}}{{#if:x=u||x=u}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x1|x1]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | = won't work |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x1||x1}}{{#if:x=u||x=u}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x1|x1]]{{#if:x=u||x=u}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | = is okay |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x1||x1}}{{#if:<nowiki>x=u</nowiki>||<nowiki>x=u</nowiki>}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x1|x1]]{{#if:x=u||x=u}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | sticky nowiki is okay |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if: || }}{{#if:two||two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if: || }}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | empty won't work |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if: || }}{{#if:two||two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if: || }}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} |   is okay |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if: || }}{{#if:two||two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if: || }}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | is okay |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if: | two|| | two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if: | two|| | two}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | | is okay |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if: {{!}} two|| {{!}} two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if: | two|| | two}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:!|!]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} is dubious |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if:2=||2=}}{{#if:3=two||3=two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if:||}}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | empty really doesn't work |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if:2=one||2=one}}{{#if:two||two}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if:two||two}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | two clobbers 2=one |
{{[[{{#if:|{{{SISTER}}}Template|Template}}:Tlx|Tlx]]{{#if:x2||x2}}{{#if:3=two||3=two}}{{#if:2=one||2=one}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | {{[[{{#if:|{{{SISTER}}}Template|Template}}:x2|x2]]{{#if:one||one}}{{#if:two||two}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} | right to left okay |