Template:NumberNabber: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
 
(45 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
-->{{#vardefine:pos|{{#ifexpr: {{#var:pos}} > 15|{{#expr:{{#var:pos}}-15}}|0}}}}<!--
|list={{{1|}}}
## Create substring for Regex:
|searchText={{{2|}}}
-->{{#vardefine:string|{{#sub:{{{1|}}}|{{#var:pos}}|20}}}}<!--
}}</includeonly>
## Regex for returning "first" number found.
-->{{#rmatch:{{#var:string}}|([0-9]*)|$1|Not Found}}</includeonly>

Latest revision as of 06:21, 28 July 2021