From GamingWiki
(Created page with "{{#if:{{{array|}}}|{{#vardefine: i|0}}{{#vardefine: sep|{{{separator|;;}}} }}<!-- -->{{#while: | {{#vardefineecho: theitem | {{#explode:{{{array}}}|{{#var: sep}}| ...") |
|||
(20 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|}}}}}}<!-- | |
− | + | -->}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} |