Template:Tlxi: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SMcCandlish
(FAIL. <sigh>)
meta>Redrose64
(please don't nest documentation)
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/start box}}


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.
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.
Line 36: Line 34:


{{Documentation|Template:Tlx/doc}}
{{Documentation|Template:Tlx/doc}}
</div>


<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 22:56, 22 April 2014

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

Use this template instead of {{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 <var>...</var>, not just typographic italics, but the underlying Template:Tlg doesn't execute that markup.

Usage

{{Tlxi|Template|first parameter|second|third|...|eleventh}}{{Template|first parameter|second|third|...|eleventh}}
{{Tlxi|Template|2=first parameter|3=second|4=third|...|12=eleventh}}{{Template|first parameter|second|third|...}} if they might contain "=" signs (note the off-by-one notation – parameter 1 remains the name of the template)
{{Tlxi|Template|<nowiki>first|second|...|999th</nowiki>}}{{Template|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|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|<nowiki>tenth|eleventh|twelfth|thirteenth|...</nowiki>}}
or
{{Tlxi|Template|first parameter|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth{{!}}eleventh{{!}}twelfth{{!}}thirteenth{{!}}...}}
or
{{Tlxi|Template|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>}}
{{Template|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.