From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
{{#if:{{{array|}}}|{{#vardefine: i|0}}{{#vardefine: sep|{{{separator|;;}}} }}<!--
+
{{#if:{{{array|}}}|<!--
 +
-->{{#vardefine: i   | {{{countfrom|1}}}  }}<!--
 +
-->{{#vardefine: sep | {{{separator|;;}}} }}<!--
 
   -->{{#while:  
 
   -->{{#while:  
 
     | {{#vardefineecho: theitem
 
     | {{#vardefineecho: theitem
       | {{#explode:{{{array}}}|{{#var: sep}}| {{#vardefineecho: i | {{#expr: {{#var: i}} + 1 }} }} }}  
+
       | {{#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}} }}<!--
 
   -->}}<!--
 
   -->}}<!--
 
-->}}
 
-->}}

Revision as of 21:10, 7 February 2011