Template:Ship Infobox: Difference between revisions
no edit summary
imported>Explodabat (total cost auto-fill/calculation was not present?) |
imported>Explodabat No edit summary |
||
Line 211: | Line 211: | ||
<data source="material_cost"><label>Materials Cost</label> | <data source="material_cost"><label>Materials Cost</label> | ||
<!--All ore prices should match the Mega Base economy prices--> | <!--All ore prices should match the Mega Base economy prices--> | ||
<format> | <format> | ||
{{#switch: {{{material_cost}}} | {{#switch: {{{material_cost}}} | ||
Line 247: | Line 238: | ||
<data source="total_cost"><label>Total Cost</label> | <data source="total_cost"><label>Total Cost</label> | ||
<format> | <format> | ||
{{#ifeq: {{lc:{{{material_cost}}}}} | force | ${{formatnum:{{#expr:{{formatnum:{{#replace:{{#replace:{{{credit|0}}}|$|}}|?|0}}|R}}+{{formatnum:{{#replace:{{#replace:{{{force_material_cost|0}}}|$|}}|?|0}}|R}}}}}} | | {{#ifeq: {{lc:{{{material_cost}}}}} | force | ${{formatnum:{{#expr:{{formatnum:{{#replace:{{#replace:{{{credit|0}}}|$|}}|?|0}}|R}}+{{formatnum:{{#replace:{{#replace:{{{force_material_cost|0}}}|$|}}|?|0}}|R}}}}}} | |