Template:BTD4 upgrade info: Difference between revisions

mNo edit summary
mNo edit summary
Line 24: Line 24:
!Upgrade cost
!Upgrade cost
|colspan="2"|{{BTD4 cost by difficulty|{{{cost M|0}}}}}
|colspan="2"|{{BTD4 cost by difficulty|{{{cost M|0}}}}}
<!-- disabled until base tower pages are done
|-
|-
!Total cost
!Total cost
Line 29: Line 30:
|-
|-
!Sell value
!Sell value
|colspan="2"|{{BTD4 cost by difficulty|{{#cargo_query:table=btd4_upgrades|fields=ROUND(SUM(cost_M*0.8),0)|group by=tower|where=tower="{{{tower}}}" AND tier<="{{{tier}}}"|no html}}}}
|colspan="2"|{{BTD4 cost by difficulty|{{#cargo_query:table=btd4_upgrades|fields=ROUND(SUM(cost_M*0.8),0)|group by=tower|where=tower="{{{tower}}}" AND tier<="{{{tier}}}"|no html}}}}-->
|}
|}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd4_upgrades
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd4_upgrades