Template:CostLine: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
Line 1: Line 1:
<includeonly>|[[File:{{{pic|{{{1}}}}}}.{{#switch:{{lc:{{{gif|no}}}}}|no=png|yes=gif}}|link={{{1}}}]]
<includeonly>
|[[File:{{{pic|{{{1}}}}}}.{{#switch:{{lc:{{{gif|no}}}}}|no=png|yes=gif}}|link={{{1}}}]]
|[[{{{1|??}}}|{{{txt|{{{1}}}}}}]] {{{namenotes|}}}
|[[{{{1|??}}}|{{{txt|{{{1}}}}}}]] {{{namenotes|}}}
{{#ifeq:{{#var:qtyBool}}|Yes|{{!}}{{formatnum:{{{quantity|{{{2|1}}}}}}}}|}}
{{#ifeq:{{#var:qtyBool}}|Yes|{{!}}{{formatnum:{{{quantity|{{{2|1}}}}}}}}|}}
|{{#ifeq:{{lc:{{{cost}}}}}|no|{{NA}}|{{Coins|{{{quantity|{{{2|1}}}}}}*{{#if:{{{cost|}}}|{{{cost}}}|{{GEP|{{{1}}}}}}}}}{{#if:{{{costmax|}}}|&nbsp;-&nbsp;{{Coins|{{{quantity|{{{2|1}}}}}}*{{{costmax}}}}}{{#vardefine:runningTotalDiff|{{#expr:{{#var:runningTotalDiff}}+{{{quantity|{{{2|1}}}}}}*{{#expr:{{#if:{{{cost|}}}|{{{costmax}}}-{{{cost}}}|{{{costmax}}}-{{GEP|{{{1}}}}}}}}}}}|}}}}{{#vardefine:runningTotal|{{#expr:{{#var:runningTotal}}+{{{quantity|{{{2|1}}}}}}*{{#if:{{{cost|}}}|{{{cost}}}|{{GEP|{{{1}}}}}}}}}}}{{{costref|}}}}}{{#ifeq:{{#var:cost_table_type|}}|Construction|{{#subobject:|Uses material={{{1}}}|Uses material quantity={{{quantity|1}}}}}}}
|{{#ifeq:{{lc:{{{cost}}}}}|no|{{NA}}|{{Coins|{{{quantity|{{{2|1}}}}}}*{{#if:{{{cost|}}}|{{{cost}}}|{{GEP|{{{1}}}}}}}}}{{#if:{{{costmax|}}}|&nbsp;-&nbsp;{{Coins|{{{quantity|{{{2|1}}}}}}*{{{costmax}}}}}{{#vardefine:runningTotalDiff|{{#expr:{{#var:runningTotalDiff}}+{{{quantity|{{{2|1}}}}}}*{{#expr:{{#if:{{{cost|}}}|{{{costmax}}}-{{{cost}}}|{{{costmax}}}-{{Price|{{{1}}}}}}}}}}}|}}}}{{#vardefine:runningTotal|{{#expr:{{#var:runningTotal}}+{{{quantity|{{{2|1}}}}}}*{{#if:{{{cost|}}}|{{{cost}}}|{{GEP|{{{1}}}}}}}}}}}{{{costref|}}}}}{{#ifeq:{{#var:cost_table_type|}}|Construction|{{#subobject:|Uses material={{{1}}}|Uses material quantity={{{quantity|1}}}}}}}
|-</includeonly><noinclude>{{/doc}}</noinclude>
|-</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 10:33, 10 May 2024

costline doc