Template:Enum: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SimonTrew
Pass through optional parameters. The idiom here used is to tell the difference between an empty parameter and an unspecified one - this makes it look longer but it's just unrolling the loop manually as we have to.
Ookami (talk | contribs)
m 34 revisions imported
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Separated entries|main|separator={{#if:{{{comma|}}}|{{{comma}}}|,&#32;}}|conjunction={{#if:{{{and|}}}|{{{and}}}|&#32;and&#32;}}}}{{#if:{{{1|}}}|{{{after|}}}}}</includeonly><noinclude>
-->{{#if:{{{1|}}}|{{Enum/Item|{{{1|}}}|{{{2|}}}|{{{3|}}}<!--
{{Documentation}}</noinclude>
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{2|}}}|{{Enum/Item|{{{2|}}}|{{{3|}}}|{{{4|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{3|}}}|{{Enum/Item|{{{3|}}}|{{{4|}}}|{{{5|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{4|}}}|{{Enum/Item|{{{4|}}}|{{{5|}}}|{{{6|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{5|}}}|{{Enum/Item|{{{5|}}}|{{{6|}}}|{{{7|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{6|}}}|{{Enum/Item|{{{6|}}}|{{{7|}}}|{{{8|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{7|}}}|{{Enum/Item|{{{7|}}}|{{{8|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
-->{{#if:{{{8|}}}|{{Enum/Item|{{{8|}}}<!--
  -->|after{{#ifeq:{{{after|}}}|{{{after|-}}}||x}}={{{after|}}}<!--
  -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!--
  -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!--
-->}}}}<!--
--></includeonly><noinclude>
{{doc}}
</noinclude>

Latest revision as of 17:22, 3 September 2020