Template:Code: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
Redo delimiters
Line 1: Line 1:
<includeonly>{{ #vardefine: delimiter | {{
<includeonly>{{ #vardefine: delimiter | {{
   #switch: {{{delimiter|}}}{{{delimit|}}}{{{d|}}}
   #switch: {{{delimiter|}}}{{{d|}}}
   | , | pretty | pretty-or = ,&nbsp;
  <!--"pretty"s are deprecated-->
   | and | pretty-and = &#32;and&nbsp;
   | , | pretty | pretty-or | pretty-and = ,&nbsp;
   | &amp; | pretty-&amp; = &nbsp;&amp;&nbsp;
   | and = &#32;and&nbsp;
   | &amp; = &nbsp;&amp;&nbsp;
   | or = &#32;or&nbsp;
   | or = &#32;or&nbsp;
   | to = &#32;to&nbsp;
   | to = &#32;to&nbsp;
Line 12: Line 13:
   | #default = {{{delimiter|&nbsp;}}}
   | #default = {{{delimiter|&nbsp;}}}
   }}
   }}
}}{{ #vardefine: finaldelimiter | {{
}}{{
  #switch: {{{delimiter|}}}{{{delimit|}}}{{{d|}}}
  #vardefine: mid-delimiter | {{
  | pretty | pretty-and = ,&#32;and&nbsp;
    #switch: {{{delimiter|}}}{{{d|}}}
  | pretty-&amp; = ,&#32;&amp;&nbsp;
    | and | &amp; | or | pretty | pretty-or | pretty-and = ,&#32;
  | pretty-or = ,&#32;or&nbsp;
    | #default = {{#var: delimiter}}
  | {{ #var: delimiter }}
  }}
}}
}}<code>{{{1}}}</code>{{
}}<code>{{{1}}}</code>{{ #if: {{{2|}}} | {{ #var: {{ #if: {{{3|}}} || final }}delimiter }}<code>{{{2}}}</code>
    #if: {{{2|}}} | {{ #if: {{{3|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{2}}}</code>
}}{{ #if: {{{3|}}} | {{ #var: {{ #if: {{{4|}}} || final }}delimiter }}<code>{{{3}}}</code>
}}{{ #if: {{{3|}}} | {{ #if: {{{4|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{3}}}</code>
}}{{ #if: {{{4|}}} | {{ #var: {{ #if: {{{5|}}} || final }}delimiter }}<code>{{{4}}}</code>
}}{{ #if: {{{4|}}} | {{ #if: {{{5|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{4}}}</code>
}}{{ #if: {{{5|}}} | {{ #var: {{ #if: {{{6|}}} || final }}delimiter }}<code>{{{5}}}</code>
}}{{ #if: {{{5|}}} | {{ #if: {{{6|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{5}}}</code>
}}{{ #if: {{{6|}}} | {{ #var: {{ #if: {{{7|}}} || final }}delimiter }}<code>{{{6}}}</code>
}}{{ #if: {{{6|}}} | {{ #if: {{{7|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{6}}}</code>
}}{{ #if: {{{7|}}} | {{ #var: {{ #if: {{{8|}}} || final }}delimiter }}<code>{{{7}}}</code>
}}{{ #if: {{{7|}}} | {{ #if: {{{8|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{7}}}</code>
}}{{ #if: {{{8|}}} | {{ #var: {{ #if: {{{9|}}} || final }}delimiter }}<code>{{{8}}}</code>
}}{{ #if: {{{8|}}} | {{ #if: {{{9|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{8}}}</code>
}}{{ #if: {{{9|}}} | {{ #var: {{ #if: {{{10|}}} || final }}delimiter }}<code>{{{9}}}</code>
}}{{ #if: {{{9|}}} | {{ #if: {{{10|}}}|{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{9}}}</code>
}}{{ #if: {{{10|}}} | {{ #var: finaldelimiter }}<code>{{{10}}}</code>
}}{{ #if: {{{10|}}}| {{ #var: delimiter }}<code>{{{10}}}</code>
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{doc}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>

Revision as of 07:10, 28 March 2019