From GamingWiki
Line 3: | Line 3: | ||
-->{{#vardefine: countfrom | {{{countfrom|1}}} }}<!-- | -->{{#vardefine: countfrom | {{{countfrom|1}}} }}<!-- | ||
-->{{#arrayslice: thearray | inarray | {{#var: countfrom}} }}<!-- | -->{{#arrayslice: thearray | inarray | {{#var: countfrom}} }}<!-- | ||
− | -->{{{beforefirst|}}}{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}| # | + | -->{{#vardefine: token | {{{token|}}} | @@@@@ }}<!-- |
+ | -->{{#vardefine: pattern | {{{pattern|}}} | {{#var:token}} }}<!-- | ||
+ | -->{{{beforefirst|}}}<!-- | ||
+ | -->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|{{#var:token}}|{{#var:pattern}}}}<!-- | ||
+ | -->{{{afterlast|}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq: 0|1|<!-- | -->{{#ifeq: 0|1|<!-- |