From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#if:{{{array|}}}|<!--
 
{{#if:{{{array|}}}|<!--
-->{{#arraydefine: inarray | {{{array}}} | {{{separator|;;}}} }}<!--
 
-->{{#vardefine: countfrom | {{{countfrom|1}}}  }}<!--
 
-->{{#arrayslice: thearray | inarray | {{#var: countfrom}} }}<!--
 
-->{{#vardefine: token | {{{token|@@@@@}}} }}<!--
 
-->{{#vardefine: pattern | {{{pattern|{{#var:token}}}}} }}<!--
 
-->token: ({{#var:token}}) pattern: ({{#var:pattern}})<!--
 
-->{{{beforefirst|}}}<!--
 
-->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|{{#var:token}}|{{#var:pattern}}}}<!--
 
-->{{{afterlast|}}}<!--
 
-->}}<!--
 
 
-->{{#ifeq: 0|1|<!--
 
-->{{#ifeq: 0|1|<!--
-->{{#vardefine: i  | {{{countfrom|1}}}  }}<!--
+
  -->{{#arraydefine: inarray | {{{array}}} | {{{separator|;;}}} }}<!--
-->{{#vardefine: sep | {{{separator|;;}}} }}<!--
+
  -->{{#vardefine: countfrom | {{{countfrom|1}}}  }}<!--
 +
  -->{{#arrayslice: thearray | inarray | {{#var: countfrom}} }}<!--
 +
  -->{{#vardefine: token | {{{token|@@@@@}}} }}<!--
 +
  -->{{#vardefine: pattern | {{{pattern|{{#var:token}}}}} }}<!--
 +
  -->token: ({{#var:token}}) pattern: ({{#var:pattern}})<!--
 +
  -->{{{beforefirst|}}}<!--
 +
  -->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|{{#var:token}}|{{#var:pattern}}}}<!--
 +
  -->{{{afterlast|}}}<!--
 +
-->|<!--
 +
  -->{{#vardefine: i  | {{{countfrom|1}}}  }}<!--
 +
  -->{{#vardefine: sep | {{{separator|;;}}} }}<!--
 
   -->{{#while:  
 
   -->{{#while:  
 
     | {{#vardefineecho: theitem
 
     | {{#vardefineecho: theitem
Line 60: Line 60:
 
     -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!--
 
     -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!--
 
   -->}}<!--
 
   -->}}<!--
 +
-->}}<!--
 
-->}}
 
-->}}

Revision as of 19:22, 17 February 2011