Difference between revisions of "Template:Tlx"

From Moegirlpedia
Jump to: navigation, search
(Created page with "<includeonly><code><nowiki>{{</nowiki>{{#if:{{{subst|}}}|subst:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- -->{{#if:{{{2|}}}| &#1...")
 
 
Line 1: Line 1:
<includeonly><code><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!--
+
<includeonly><!--
-->{{#if:{{{2|}}}|
+
    --><code><!--
&#124;{{{2}}}
+
        --><nowiki>{{</nowiki>{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!--
}}<!--
+
                    -->[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!--
-->{{#if:{{{3|}}}|
+
                          -->{{#if:{{{2|}}} |&#124;{{{2}}}}}<!--
&#124;{{{3}}}
+
                          -->{{#if:{{{3|}}} |&#124;{{{3}}}}}<!--
}}<!--
+
                          -->{{#if:{{{4|}}} |&#124;{{{4}}}}}<!--
-->{{#if:{{{4|}}}|
+
                          -->{{#if:{{{5|}}} |&#124;{{{5}}}}}<!--
&#124;{{{4}}}
+
                          -->{{#if:{{{6|}}} |&#124;{{{6}}}}}<!--
}}<!--
+
                          -->{{#if:{{{7|}}} |&#124;{{{7}}}}}<!--
-->{{#if:{{{5|}}}|
+
                          -->{{#if:{{{8|}}} |&#124;{{{8}}}}}<!--
&#124;{{{5}}}
+
                          -->{{#if:{{{9|}}} |&#124;{{{9}}}}}<!--
}}<!--
+
                          -->{{#if:{{{10|}}} |&#124;{{{10}}}}}<!--
-->{{#if:{{{6|}}}|
+
                          -->{{#if:{{{11|}}} |&#124;{{{11}}}}}<!--
&#124;{{{6}}}
+
                          -->{{#if:{{{12|}}} |&#124;{{{12}}}}}<!--
}}<!--
+
                          -->{{#if:{{{13|}}} |&#124;{{{13}}}}}<!--
-->{{#if:{{{7|}}}|
+
                          -->{{#if:{{{14|}}} |&#124;{{{14}}}}}<!--
&#124;{{{7}}}
+
                          -->{{#if:{{{15|}}} |&#124;{{{15}}}}}<!--
}}<!--
+
                          -->{{#if:{{{16|}}} |&#124;{{{16}}}}}<!--
-->{{#if:{{{8|}}}|
+
                          -->{{#if:{{{17|}}} |&#124;{{{17}}}}}<!--
&#124;{{{8}}}
+
                          -->{{#if:{{{18|}}} |&#124;{{{18}}}}}<!--
}}<!--
+
                          -->{{#if:{{{19|}}} |&#124;{{{19}}}}}<!--
-->{{#if:{{{9|}}}|
+
                          -->{{#if:{{{20|}}} |&#124;{{{20}}}}}<!--
&#124;{{{9}}}
+
                          -->{{#if:{{{21|}}} |&#124;''...''}}<!--
}}<!--
+
        --><nowiki>}}</nowiki><!--
-->{{#if:{{{10|}}}|
+
    --></code><!--
&#124;{{{10}}}
+
--></includeonly><noinclude>
}}<!--
+
{{Documentation}}</noinclude>
-->{{#if:{{{11|}}}|
 
&#124;{{{11}}}
 
}}<!--
 
-->{{#if:{{{12|}}}|
 
&#124;''...''
 
}}<nowiki>}}</nowiki></code></includeonly><noinclude>
 
{{Documentation}}
 
[[Category:Internal link templates]]
 
</noinclude>
 

Latest revision as of 11:28, 14 May 2020

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template is similar to {{tl}}, but can take up to 11 parameters separated by “|”.

Usage

(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)

{{tlx|Template|first parameter|second parameter|third parameter|...|tenth parameter}} produces: {{Template|first parameter|second parameter|third parameter|...|tenth parameter}}

When you want to indicate setting a value to one or more parameters, you would normally use the equals-sign ("="). This doesn't work here; instead use Template:Tlf, like so:

{{tlx|Template|first{{=}}first value|second|third{{=}}third value}} produces: {{Template|first=first value|second|third=third value}}

For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in Template:Tag tags. When you do, you don't need to replace equals-signs. For instance:

{{tlx|Template|<nowiki>''first''|''second''|''third=value''|...|''999th''</nowiki>}} produces: {{Template|first|second|third=value|...|999th}}