Template:NumberNabber: Difference between revisions
From IdleOn MMO Wiki
imported>Kiokurashi No edit summary |
imported>Kiokurashi No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#while: | <includeonly>{{#vardefine:i|0}}{{#while: | ||
| {{#if: {{#explode:{{{1|}}}|,|{{#var:i}}}}| true }} | | {{#if: {{#explode:{{{1|}}}|,|{{#var:i}}}}| true }} | ||
| <nowiki /> | | <nowiki /> | ||
<!-- ## Create substring for Regex## -->{{#vardefine:string|{{#explode:{{{1|}}}|,|{{#var:i}}}}}}<!-- | <!-- ## Create substring for Regex ## | ||
-->{{#vardefine:string|{{#explode:{{{1|}}}|,|{{#var:i}}}}}}<!-- | |||
## Check if item exsits in string. Check if "Craft" exists in string. | ## Check if item exsits in string. Check if "Craft" exists in string. | ||
-->{{#ifexpr: {{#pos:{{#var:string}}|{{{2}}}}} > 0 | {{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}{{#ifexpr: {{#pos:{{#var:string}}|Craft}} > 0 | (Crafted)}} | -->{{#ifexpr: {{#pos:{{#var:string}}|{{{2}}}}} > 0 | {{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}{{#ifexpr: {{#pos:{{#var:string}}|Craft}} > 0 | (Crafted)}} | ||
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | ||
}}</includeonly> | }}</includeonly> |