Difference between revisions of "Sequence"
From Sega Retro
(Doesn't quite work, seems like {{#vardefine:{{{1|}}}|xxx}} is broken. Have I made a mistake?) |
(no, that's not it) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:i|0}}{{#while: | <includeonly>{{#vardefine:i|0}}{{#while: | ||
| {{#ifexpr: {{#len:{{#explode:{{{3}}}|{{{2}}}|{{#var:i}}}}}} > 0 | true }} | | {{#ifexpr: {{#len:{{#explode:{{{3}}}|{{{2}}}|{{#var:i}}}}}} > 0 | true }} | ||
− | | {{#vardefine:{{{1|}}}|{{#explode:{{{3}}}|{{{2}}}|{{#var:i}}}}}}{{{4}}}{{incvar|i}} | + | | {{#vardefine:{{{1|}}}|{{#explode:{{{3}}}|{{{2}}}|{{#var:i}}}}}}{{{4}}}{{#var:{{{1|}}}}}{{incvar|i}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
==Usage== | ==Usage== |
Revision as of 15:59, 6 February 2018
Usage
{{sequence|variablename|delimiter|array| block statement }}
Example
{{sequence|region|,|jp,us,eu| * md_date_{{#var:region}} }}
returns
- md_date_jp
jp
- md_date_jp
us
- md_date_jp
eu