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. |
meta>Svick added parameter “force comma” |
||
Line 4: | Line 4: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{2|}}}|{{Enum/Item|{{{2|}}}|{{{3|}}}|{{{4|}}}<!-- | -->{{#if:{{{2|}}}|{{Enum/Item|{{{2|}}}|{{{3|}}}|{{{4|}}}<!-- | ||
Line 9: | Line 10: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{3|}}}|{{Enum/Item|{{{3|}}}|{{{4|}}}|{{{5|}}}<!-- | -->{{#if:{{{3|}}}|{{Enum/Item|{{{3|}}}|{{{4|}}}|{{{5|}}}<!-- | ||
Line 14: | Line 16: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{4|}}}|{{Enum/Item|{{{4|}}}|{{{5|}}}|{{{6|}}}<!-- | -->{{#if:{{{4|}}}|{{Enum/Item|{{{4|}}}|{{{5|}}}|{{{6|}}}<!-- | ||
Line 19: | Line 22: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{5|}}}|{{Enum/Item|{{{5|}}}|{{{6|}}}|{{{7|}}}<!-- | -->{{#if:{{{5|}}}|{{Enum/Item|{{{5|}}}|{{{6|}}}|{{{7|}}}<!-- | ||
Line 24: | Line 28: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{6|}}}|{{Enum/Item|{{{6|}}}|{{{7|}}}|{{{8|}}}<!-- | -->{{#if:{{{6|}}}|{{Enum/Item|{{{6|}}}|{{{7|}}}|{{{8|}}}<!-- | ||
Line 29: | Line 34: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{7|}}}|{{Enum/Item|{{{7|}}}|{{{8|}}}<!-- | -->{{#if:{{{7|}}}|{{Enum/Item|{{{7|}}}|{{{8|}}}<!-- | ||
Line 34: | Line 40: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if:{{{8|}}}|{{Enum/Item|{{{8|}}}<!-- | -->{{#if:{{{8|}}}|{{Enum/Item|{{{8|}}}<!-- | ||
Line 39: | Line 46: | ||
-->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | -->|and{{#ifeq:{{{and|}}}|{{{and|-}}}||x}}={{{and|}}}<!-- | ||
-->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | -->|comma{{#ifeq:{{{comma|}}}|{{{comma|-}}}||x}}={{{comma|}}}<!-- | ||
-->|force comma{{#ifeq:{{{force comma|}}}|{{{force comma|-}}}||x}}={{{force comma|}}}<!-- | |||
-->}}}}<!-- | -->}}}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |