Template:NumberNabber: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 5: Line 5:
-->{{#vardefine:string|{{#explode:{{{1|}}}|,|{{#var:i}}}}}}<!--   
-->{{#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.  
-->{{#if: {{#pos:{{#var:string}}|{{{2}}}}}|{{#vardefine:num|{{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}}}{{#var:num}}{{#if: {{#pos:{{#var:string}}|Craft}}| (Crafted)}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}}
-->{{#if: {{#pos:{{#var:string}}|{{{2}}}}}|{{#vardefine:num|{{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}}}{{#var:num}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}}
}}</includeonly>
}}</includeonly>

Revision as of 05:36, 4 July 2021