Difference between revisions of "Template:ResourceBreakdown"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
 
d:{{#vardefineecho: depth | {{#sub: {{{#userparam}}} | 0 | {{#pos: {{{#userparam}}} | ; | 0 }} }} }}<!--
 
d:{{#vardefineecho: depth | {{#sub: {{{#userparam}}} | 0 | {{#pos: {{{#userparam}}} | ; | 0 }} }} }}<!--
-->i:{{#vardefineecho: i | depth }}<!--working variable for depth to not overwrite the total depth--><!--
+
-->i:{{#vardefineecho: i | {{#var: depth}} }}<!--working variable for depth to not overwrite the total depth--><!--
 
-->m:{{#vardefineecho: multiplier | {{#sub: {{{#userparam}}} | {{#expr: {{#pos: {{{#userparam}}} | ; | 0 }} + 1 }} }} }}<!--
 
-->m:{{#vardefineecho: multiplier | {{#sub: {{{#userparam}}} | {{#expr: {{#pos: {{{#userparam}}} | ; | 0 }} + 1 }} }} }}<!--
 
--><includeonly><!--
 
--><includeonly><!--

Revision as of 11:31, 5 September 2018

d:{{{#userparam}}}i:{{{#userparam}}}m:{{#userparam}}} Checks if given material is most basic resource, else breaks it down into another layer of more basic ones Unfinished