Template:Tlxi: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SMcCandlish
(update code and doc to use <var>)
m (16 revisions imported)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Template for discussion/dated|page=Tlxi|link=Wikipedia:Templates for discussion/Log/2014 April 20#Template:Tlxi|type=inline}}</noinclude>{{Tlg|code=yes|subst={{{subst|}}}|{{{1|}}}<!--
{{Tlg|italic=yes|code=yes|subst={{{subst|}}}|{{{1|}}}<!--
-->|2{{#ifeq:{{{2}}}|{{{2|x}}}||x}}=<var>{{{2}}}</var><!--
-->|2{{#ifeq:{{{2}}}|{{{2|x}}}||x}}={{{2}}}<!--
-->|3{{#ifeq:{{{3}}}|{{{3|x}}}||x}}=<var>{{{3}}}</var><!--
-->|3{{#ifeq:{{{3}}}|{{{3|x}}}||x}}={{{3}}}<!--
-->|4{{#ifeq:{{{4}}}|{{{4|x}}}||x}}=<var>{{{4}}}</var><!--
-->|4{{#ifeq:{{{4}}}|{{{4|x}}}||x}}={{{4}}}<!--
-->|5{{#ifeq:{{{5}}}|{{{5|x}}}||x}}=<var>{{{5}}}</var><!--
-->|5{{#ifeq:{{{5}}}|{{{5|x}}}||x}}={{{5}}}<!--
-->|6{{#ifeq:{{{6}}}|{{{6|x}}}||x}}=<var>{{{6}}}</var><!--
-->|6{{#ifeq:{{{6}}}|{{{6|x}}}||x}}={{{6}}}<!--
-->|7{{#ifeq:{{{7}}}|{{{7|x}}}||x}}=<var>{{{7}}}</var><!--
-->|7{{#ifeq:{{{7}}}|{{{7|x}}}||x}}={{{7}}}<!--
-->|8{{#ifeq:{{{8}}}|{{{8|x}}}||x}}=<var>{{{8}}}</var><!--
-->|8{{#ifeq:{{{8}}}|{{{8|x}}}||x}}={{{8}}}<!--
-->|9{{#ifeq:{{{9}}}|{{{9|x}}}||x}}=<var>{{{9}}}</var><!--
-->|9{{#ifeq:{{{9}}}|{{{9|x}}}||x}}={{{9}}}<!--
-->|10{{#ifeq:{{{10}}}|{{{10|x}}}||x}}=<var>{{{10}}}</var><!--
-->|10{{#ifeq:{{{10}}}|{{{10|x}}}||x}}={{{10}}}<!--
-->|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}=<var>{{{11}}}</var><!--
-->|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}={{{11}}}<!--
-->|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}=<var>{{{12}}}</var>}}<noinclude>
-->|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}={{{12}}}}}<noinclude>
 
{{Documentation}}
{{Documentation/start box}}
<!-- Please add this template's categories to the /doc subpage and language links to Wikidata - thanks! -->
 
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.  For this reason, it marks up the parameter with {{tag|var}}, not just typographic italics.
=== 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.
 
{{Documentation|Template:Tlx/doc}}
 
</div>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 05:17, 3 September 2020

{{[[Template:|]]}}