From GamingWiki
Line 1: | Line 1: | ||
{{#if:{{{array|}}}|<!-- | {{#if:{{{array|}}}|<!-- | ||
− | -->{{#ifeq: | + | -->{{#ifeq: 1|1|<!-- |
-->{{#arraydefine: inarray | {{{array}}} | {{{separator|;;}}} }}<!-- | -->{{#arraydefine: inarray | {{{array}}} | {{{separator|;;}}} }}<!-- | ||
-->{{#vardefine: countfrom | {{{countfrom|1}}} }}<!-- | -->{{#vardefine: countfrom | {{{countfrom|1}}} }}<!-- | ||
Line 6: | Line 6: | ||
-->{{#vardefine: token | {{{token|@@@@@}}} }}<!-- | -->{{#vardefine: token | {{{token|@@@@@}}} }}<!-- | ||
-->{{#vardefine: pattern | {{{pattern|{{#var:token}}}}} }}<!-- | -->{{#vardefine: pattern | {{{pattern|{{#var:token}}}}} }}<!-- | ||
− | -->token: ({{#var:token}}) pattern: ({{#var:pattern}})<!-- | + | --><!-- token: ({{#var:token}}) pattern: ({{#var:pattern}}) --><!-- |
− | -->{{{beforefirst|}}}<!-- | + | -->{{{beforefirst|{{{before|}}}}}}<!-- |
-->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|{{#var:token}}|{{#var:pattern}}}}<!-- | -->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|{{#var:token}}|{{#var:pattern}}}}<!-- | ||
− | -->{{{afterlast|}}}<!-- | + | -->{{{afterlast|{{{after|}}}}}}<!-- |
-->|<!-- | -->|<!-- | ||
-->{{#vardefine: i | {{{countfrom|1}}} }}<!-- | -->{{#vardefine: i | {{{countfrom|1}}} }}<!-- |