Template:NumberNabber: Difference between revisions
From IdleOn MMO Wiki
imported>Kiokurashi No edit summary |
imported>Kiokurashi No edit summary |
||
Line 3: | Line 3: | ||
| <nowiki /> | | <nowiki /> | ||
<!-- ## Create substring for Regex ## | <!-- ## Create substring for Regex ## | ||
-->{{#vardefine:string|{{#explode:{{{1|}}}|,|{{#var:i}}}}}}<!-- | -->{{#vardefine:string|{{#rreplace:{{#explode:{{{1|}}}|,|{{#var:i}}}}|(32px)|px}}}}<!-- | ||
## 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}}}}}|{{#rmatch:{{#var:string}}|([0-9]*[^\D][^32px])|$1|Not Found}}{{#if: {{#pos:{{#var:string}}|Craft}} | -->{{#if: {{#pos:{{#var:string}}|{{{2}}}}}|{{#rmatch:{{#var:string}}|([0-9]*[^\D][^32px])|$1|Not Found}}{{#if: {{#pos:{{#var:string}}|Craft}} | ||
| (Crafted)}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}} | | (Crafted)}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}} | ||
}}</includeonly> | }}</includeonly> |