From GamingWiki
Line 1: | Line 1: | ||
− | {{#if:{{{array|}}}|{{#vardefine: i| | + | {{#if:{{{array|}}}|<!-- |
+ | -->{{#vardefine: i | {{{countfrom|1}}} }}<!-- | ||
+ | -->{{#vardefine: sep | {{{separator|;;}}} }}<!-- | ||
-->{{#while: | -->{{#while: | ||
| {{#vardefineecho: theitem | | {{#vardefineecho: theitem | ||
− | | {{#explode:{{{array}}}|{{#var: sep}}| | + | | {{#explode: {{{array}}} | {{#var: sep}} | {{#var: i}} }} |
}}{{#vardefine: previtem | }}{{#vardefine: previtem | ||
| {{#explode:{{{array}}}|{{#var: sep}}| {{#expr: {{#var: i}} - 1 }} }} | | {{#explode:{{{array}}}|{{#var: sep}}| {{#expr: {{#var: i}} - 1 }} }} | ||
Line 20: | Line 22: | ||
-->| #default = {{{after|}}}<!-- | -->| #default = {{{after|}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}} |