Difference between revisions of "Template:Tlxi"

From blackwiki
Jump to navigation Jump to search
test>SMcCandlish
(well, do it same was as tlxb for now)
test>SMcCandlish
(moving documentation to /doc page)
Line 11: Line 11:
 
-->|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}={{{11}}}<!--
 
-->|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}={{{11}}}<!--
 
-->|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}={{{12}}}}}<noinclude>
 
-->|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}={{{12}}}}}<noinclude>
 
+
{{Documentation}}
Use this template instead of {{tl|tlx}} if you want the template parameters to be italicized.  The main reason to ever do this is in template documentation, to give example input where the parameter are unnamed sequential ones and we're showing variable, sample input.  It really should mark up the parameter with {{tag|var}}, not just typographic italics, but the underlying [[Template:Tlg]] doesn't execute that markup.
 
 
 
=== Usage ===
 
 
 
: {{Tlx|Tlxi|Template|first parameter|second|third|...|eleventh}} → {{Tlxi|Template|first parameter|second|third|...|eleventh}}
 
: {{Tlx|Tlxi|Template|2{{=}}first parameter|3{{=}}second|4{{=}}third|...|12{{=}}eleventh}} → {{Tlxi|Template|2=first parameter|3=second|4=third|5=...|12=eleventh}} if they might contain "=" signs (note the off-by-one notation &ndash; parameter 1 remains the name of the template)
 
: {{Tlx|Tlxi|Template|&lt;nowiki>first|second|...|999th&lt;/nowiki>}} → {{Tlxi|Template|<nowiki>first|second|...|999th</nowiki>}} (for more than 10 parameters)
 
 
 
 
 
If {{var|Template}} is to be passed more than nine parameters (using up to the tenth of {{tnull|Tlxi}}'s own parameters), the remaining parameters have to be baked into the actual eleventh parameter of {{tnull|Tlxi}}:
 
 
 
: {{Tlx|Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|<nowiki>ninth|&lt;nowiki>tenth|eleventh|twelfth|thirteenth|...&lt;/nowiki></nowiki>}}
 
:or
 
: {{Tlx|Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth{{!}}<nowiki>tenth{{!}}eleventh{{!}}twelfth{{!}}thirteenth{{!}}</nowiki>...}}
 
:or
 
: {{Tlx|Tlxi|Template|2{{=}}first parameter|3{{=}}second|4{{=}}third|5{{=}}fourth|6{{=}}fifth|7{{=}}sixth|8{{=}}seventh|9{{=}}eighth|<nowiki>10=ninth|11=&lt;nowiki>tenth|eleventh|twelfth|thirteenth|...&lt;/nowiki></nowiki>}}
 
: →
 
: {{Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki>}}
 
 
 
If a twelfth parameter is passed to {{tnull|Tlxi}} (i.e., an 11th to the {{var|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 {{tl|tlx}}, which works the same way (although it doesn't currently behave sanely when no parameters are given; use {{tl|tlu}} instead).
 
 
 
{{Documentation|Template:Tlx/doc}}
 
 
<!-- Please add this template's categories to the /doc subpage and language links to Wikidata - thanks! -->
 
<!-- Please add this template's categories to the /doc subpage and language links to Wikidata - thanks! -->
 
</noinclude>
 
</noinclude>

Revision as of 21:37, 16 May 2014

Template:Template for discussion/dated{{[[Template:|]]}}

Template documentation[create]