Template:NumberNabber: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
 
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- ## Find position of Search string (Default: File:Pagename)
<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}} >= 10| {{#expr:{{#var:pos}}-10}}|0}}|20}}}}<!--
|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