Template:NumberNabber: Difference between revisions
From IdleOn MMO Wiki
imported>Kiokurashi No edit summary |
imported>Kiokurashi No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:i|0}}{{#vardefine:crafted|0}}{{#while: | <includeonly>{{#vardefine:i|0}}{{#vardefine:crafted|0}} | ||
{{#invoke:Loops|numberNabber | |||
|list={{{1|}}} | |||
|searchText={{{2|}}} | |||
}}<!--{{#while: | |||
| {{#if: {{#explode:{{{1|}}}|,|{{#var:i}}}}| true }} | | {{#if: {{#explode:{{{1|}}}|,|{{#var:i}}}}| true }} | ||
| <nowiki /> | | <nowiki /> | ||
Line 7: | Line 11: | ||
-->{{#if: {{#pos:{{#var:string}}|{{{2}}}}}|{{#rmatch:{{#var:string}}|([0-9]*[^\D])|$1|Not Found}}{{#if: {{#pos:{{#var:string}}|Craft}} | -->{{#if: {{#pos:{{#var:string}}|{{{2}}}}}|{{#rmatch:{{#var:string}}|([0-9]*[^\D])|$1|Not Found}}{{#if: {{#pos:{{#var:string}}|Craft}} | ||
|{{#vardefine:crafted|1}}}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}} | |{{#vardefine:crafted|1}}}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}} | ||
}}</includeonly> | }}--></includeonly> |