Template:Cost

{{#if:{{{gems|}}}|{{#vardefine:cost|{{#var:cost}}+{{gems|{{{gems}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{gold|}}}|{{#vardefine:cost|{{#var:cost}}+{{gold|{{{gold}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{wood|}}}|{{#vardefine:cost|{{#var:cost}}+{{wood|{{{wood}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{nails|}}}|{{#vardefine:cost|{{#var:cost}}+{{nails|{{{nails}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{bricks|}}}|{{#vardefine:cost|{{#var:cost}}+{{bricks|{{{bricks}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{glass|}}}|{{#vardefine:cost|{{#var:cost}}+{{glass|{{{glass}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{steel|}}}|{{#vardefine:cost|{{#var:cost}}+{{steel|{{{steel}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{gravel|}}}|{{#vardefine:cost|{{#var:cost}}+{{gravel|{{{gravel}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{fuel|}}}|{{#vardefine:cost|{{#var:cost}}+{{fuel|{{{fuel}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{uranium|}}}|{{#vardefine:cost|{{#var:cost}}+{{uranium|{{{uranium}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{cement|}}}|{{#vardefine:cost|{{#var:cost}}+{{cement|{{{cement}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{rubber|}}}|{{#vardefine:cost|{{#var:cost}}+{{rubber|{{{rubber}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{carbon|}}}|{{#vardefine:cost|{{#var:cost}}+{{carbon|{{{carbon}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{titanium|}}}|{{#vardefine:cost|{{#var:cost}}+{{titanium|{{{titanium}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{marble|}}}|{{#vardefine:cost|{{#var:cost}}+{{marble|{{{marble}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{wires|}}}|{{#vardefine:cost|{{#var:cost}}+{{wires|{{{wires}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{plastics|}}}|{{#vardefine:cost|{{#var:cost}}+{{plastics|{{{plastics}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}} {{#if:{{{silicon|}}}|{{#vardefine:cost|{{#var:cost}}+{{silicon|{{{silicon}}}}}©{{#Vardefine:count|{{#expr:{{#var:count}}+1}}|}}

{{#var:cost}}

{{TSTemp}}