Teamplaid:Tlxi
{{[[Template:|]]}}
Ùsaid - Usage
deasaichThis template is a {{Tl}}-style template-link Tag that accepts and italicizes parameters. It's the same as {{Tlx}} except that the template parameters are shown in italics. Its main use is in template documentation, to give example input where the parameters are unnamed sequential ones and we're showing variable, sample input. It really should mark up the parameter with <Var>...</Var>
, not just typographic italics, but the underlying Template:Tlg doesn't have an option to execute that markup (yet).
Eisimpleirean - Examples
deasaich- {{Tlxi|ainm teamplaid|first parameter|second|third|...|eleventh}} →
{{ainm teamplaid|first parameter|second|third|...|eleventh}}
- {{Tlxi|ainm teamplaid|2=first parameter|3=second|4=third|...|12=eleventh}} →
{{ainm teamplaid|first parameter|second|third|...|…}}
if they might contain "=" signs (note the off-by-one notation – parameter 1 remains the name of the template) - {{Tlxi|ainm teamplaid|<nowiki>first|second|...|999th</nowiki>}} →
{{ainm teamplaid|first|second|...|999th}}
(for more than 10 parameters)
If Template is to be passed more than nine parameters (using up to the tenth of {{tlxi}}'s own parameters), the remaining parameters have to be baked into the actual eleventh parameter of {{tlxi}}:
- {{Tlxi|ainm teamplaid|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki>}}
- or
- {{Tlxi|ainm teamplaid|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth{{!}}eleventh{{!}}twelfth{{!}}thirteenth{{!}}...}}
- or
- {{Tlxi|ainm teamplaid|2=first parameter|3=second|4=third|5=fourth|6=fifth|7=sixth|8=seventh|9=eighth|10=ninth|11=<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki>}}
- →
{{ainm teamplaid|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|eleventh|twelfth|thirteenth|...}}
If a twelfth parameter is passed to {{tlxi}} (i.e., an 11th to the Template it calls in parameter 1), that parameter's value will be output as "…" and subsequent parameters ignored.
The rest of the documentation is for {{Tlx}}, which works the same way.
The above documentation is transcluded from Teamplaid:Tlxi/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |