Template:CostLine: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
|[[{{{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}}}|{{Price|{{{1}}}}}}}}}{{#if:{{{costmax|}}}| - {{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}}}|{{Price|{{{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}}}|{{Price|{{{1}}}}}}}}}{{#if:{{{costmax|}}}| - {{Coins|{{{quantity|{{{2|1}}}}}}*{{{costmax}}}}}{{{quantity|{{{2|1}}}}}}*{{#expr:{{#if:{{{cost|}}}|{{{costmax}}}-{{{cost}}}|{{{costmax}}}-{{Price|{{{1}}}}}}}}}}}|}}}}{{{quantity|{{{2|1}}}}}}*{{#if:{{{cost|}}}|{{{cost}}}|{{Price|{{{1}}}}}}}}}}}{{{costref|}}}}}{{#ifeq:{{#var:cost_table_type|}}|Construction|{{#subbject:|Uses material={{{1}}}|Uses material quantity={{{quantity|1}}}}}}}
|-</includeonly><noinclude>{{/doc}}</noinclude>
|-</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 10:37, 10 May 2024

costline doc