From GamingWiki
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{array|}}}|<!-- | {{#if:{{{array|}}}|<!-- | ||
− | -->{{# | + | -->{{#arraydefine: inarray | {{{array}}} | {{{separator|;;}}} }}<!-- |
− | + | -->{{#vardefine: countfrom | {{{countfrom|1}}} }}<!-- | |
− | --> | + | -->{{#arrayslice: thearray | inarray | {{#var: countfrom}} }}<!-- |
− | + | ||
− | + | TODO: get token and pattern args working | |
− | + | -->{{#vardefine: token | {{{token|@@@@@}}} }}<!-- | |
− | + | -->{{#vardefine: pattern | {{{pattern|{{#var:token}}}}} }}<!-- | |
− | + | --><!-- token: ({{#var:token}}) pattern: ({{#var:pattern}}) --><!-- | |
− | + | ||
− | + | -->{{{beforefirst|{{{before|}}}}}}<!-- | |
− | + | -->{{#arrayprint: inarray |{{{after|}}}{{{between|}}}{{{before|}}}|@@@@@|@@@@@}}<!-- | |
− | + | -->{{{afterlast|{{{after|}}}}}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->}} | -->}} |