Template:Tlx
More actions
{{[[Template;|]]{{#ib:||{{{2}}}}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}}
This template creates example usage syntax for a template, and links the name to the template page. The name is derived from "Template list expanded".
Up to 7 pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "|...". An optional SISTER parameter can specify an interwiki prefix to link to another wiki. Examples:
| Code | Result | Remark |
|---|---|---|
| {{Tlx{{#ib:x0||x0}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x0{{#ib:||{{{2}}}}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | |
| {{Tlx{{#ib:x1||x1}}{{#ib:one||one}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x1{{#ib:one||one}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | |
| {{Tlx{{#ib:x2||x2}}{{#ib:one||one}}{{#ib:two||two}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib:one||one}}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | |
{{Tlx{{#ib:x3||x3}}{{#ib:1|2|3||1|2|3}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}}
|
{{x3{{#ib:1||1}}{{#ib:2||2}}{{#ib:3||3}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | |
{{Tlx{{#ib:x4||x4}}{{#ib:1|2|3||1|2|3}}{{#ib:4||4}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}}
|
{{x4{{#ib:1||1}}{{#ib:2||2}}{{#ib:3||3}}{{#ib:4||4}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | up to 7 parameters, then ... |
{{Tlx{{#ib:x4||x4}}{{#ib:1|2|3|4||1|2|3|4}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}}
|
{{x4{{#ib:1||1}}{{#ib:2||2}}{{#ib:3|4||3|4}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | | for more
|
| {{Tlx{{#ib:x1||x1}}{{#ib:x=u||x=u}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x1{{#ib:||{{{2}}}}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | = won't work |
| {{Tlx{{#ib:x1||x1}}{{#ib:x=u||x=u}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x1{{#ib:x=u||x=u}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | = is okay
|
| {{Tlx{{#ib:x1||x1}}{{#ib:<nowiki>x=u</nowiki>||<nowiki>x=u</nowiki>}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x1{{#ib:x=u||x=u}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | sticky nowiki is okay |
| {{Tlx{{#ib:x2||x2}}{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | empty won't work |
| {{Tlx{{#ib:x2||x2}}{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} |   is okay
|
| {{Tlx{{#ib:x2||x2}}{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib: || }}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | is okay
|
| {{Tlx{{#ib:x2||x2}}{{#ib: | two|| | two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib: | two|| | two}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | | is okay
|
| {{Tlx{{#ib:x2||x2}}{{#ib: {{!}} two|| {{!}} two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib: | two|| | two}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{!{{#ib:||{{{2}}}}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} is dubious |
| {{Tlx{{#ib:x2||x2}}{{#ib:2=||2=}}{{#ib:3=two||3=two}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib:||}}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | empty really doesn't work |
| {{Tlx{{#ib:x2||x2}}{{#ib:3=two||3=two}}{{#ib:2=one||2=one}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | {{x2{{#ib:one||one}}{{#ib:two||two}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} | right to left okay |
Template list expanded
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template | 1 | Linked template name | Page name | optional |
| Parameter | 2 | Optional parameter | String | optional |
| 3 | 3 | For 2 parameters | String | optional |
| 4 | 4 | For 3 parameters | String | optional |
| 5 | 5 | For 4 parameters | String | optional |
| 6 | 6 | For 5 parameters | String | optional |
| 7 | 7 | For 6 parameters | String | optional |
| 8 | 8 | For 7 parameters | String | optional |
| 9 | 9 | For 8 parameters | String | optional |
| 10 | 10 | For 9 parameters | String | optional |
| Overflow | 11 | Overflow shown as ... | String | optional |
| Interwiki | SISTER | Optional InterWiki link prefix | String | optional |
See also
- {{Tlc}} –
{{Example}}– Not linked, several parameters and text in<code></code>style. - {{Tld}} – {{Example}} – Template link, several parameters and teletype text style[Please clarify – October 2024].
- {{Tle}} – {{ Tle | Example }} – Linked or not, expanded parameter description
- {{Tlf}} – {{Example}} – Not linked, several parameters and normal text style.
- {{Tl}} – {{Example}} – Linked, no parameters or simple ones[Please clarify – October 2024], and teletype text style[Please clarify – October 2024].
- {{Tlx}} – {{Example{{#ib:||{{{2}}}}}{{#ib:||{{{3}}}}}{{#ib:||{{{4}}}}}{{#ib:||{{{5}}}}}{{#ib:||{{{6}}}}}{{#ib:||{{{7}}}}}{{#ib:||...}}}} – Template link, several parameters and normal text style.
- {{Tlp}} – {{Example}} – Template link, several non-blank parameters and normal text style.
- {{Tlu}} – {{Example}} – Link to arbitrary other namespace.
- with subst
- Template:Tls – {{subst:template}}
- Template:Tlsx –
{{subst:template}} - Template:Tlsp – {{subst:template}}
For more see: Commons:Link templates