Template:Code: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
use a #switch instead |
||
Line 13: | Line 13: | ||
}} | }} | ||
}}{{ #vardefine: finaldelimiter | {{ | }}{{ #vardefine: finaldelimiter | {{ | ||
# | #switch: {{{delimiter|}}}{{{delimit|}}}{{{d|}}} | ||
| pretty = , and | |||
| pretty-or = , or | |||
| {{ #var: delimiter }} | | {{ #var: delimiter }} | ||
}}}} | }}}} | ||
}}<code>{{{1}}}</code>{{ #if: {{{2|}}} | {{ #var: {{ #if: {{{3|}}} || final }}delimiter }}<code>{{{2}}}</code> | }}<code>{{{1}}}</code>{{ #if: {{{2|}}} | {{ #var: {{ #if: {{{3|}}} || final }}delimiter }}<code>{{{2}}}</code> |