Template:NumberNabber: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- ## Find position of Search string (Default: Pagename.png)
<includeonly>{{#vardefine:crafted|0}}
-->{{#vardefine:pos|{{#pos:{{{1|}}}|{{{2}}}}}}}<!--
{{#invoke:Loops|numberNabber
## Create substring for Regex:
|list={{{1|}}}
-->{{#vardefine:string|{{#sub:{{{1|}}}|{{#ifexpr: {{#var:pos}} > 15|{{#expr:{{#var:pos}}-15}}|0}}}}}}<!--
|searchText={{{2|}}}
## Regex for returning "first" number found.
}}</includeonly>
-->{{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}</includeonly>

Latest revision as of 06:21, 28 July 2021