Template:BTD4 upgrade info: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
|<tabs>
|<tabs>
<tab name="Mobile">
<tab name="Mobile">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|[[File:{{{image M}}}|100px]]
|[[File:{{{image M}}}|100px]]
|-
|-
Line 11: Line 11:
</tab>
</tab>
{{#if:{{{name F|}}}|<tab name="Flash">
{{#if:{{{name F|}}}|<tab name="Flash">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|[[File:{{#if:{{{image F|}}}|{{{image F}}}|missing image.png}}|100px]]
|[[File:{{#if:{{{image F|}}}|{{{image F}}}|missing image.png}}|100px]]
|-
|-
Line 18: Line 18:
</tab>}}
</tab>}}
</tabs>
</tabs>
{|class="info-sub"
{|class="subtable"
!Tower
!Tower
|colspan="2"|[[{{{tower}}} (BTD4)|{{{tower}}}]]
|colspan="2"|[[{{{tower}}} (BTD4)|{{{tower}}}]]
|-
|-
!Upgrade cost
!Cost
|colspan="2"|{{BTD4 cost by difficulty|{{{cost M|0}}}}}
|colspan="2"|{{BTD4 cost by difficulty|{{{cost M|0}}}}}
|-
!Total cost
|colspan="2"|{{BTD4 cost by difficulty|{{#expr:{{#cargo_query:table=btd4_towers|fields=CONCAT(cost_M)|where=name="{{{tower}}}"|no html}}+{{#cargo_query:table=btd4_upgrades|fields=CONCAT(SUM(cost_M))|group by=tower|where=tower="{{{tower}}}" AND tier<="{{{tier}}}"|no html}}}}}}
|-
!Sell value
|colspan="2"|{{BTD4 cost by difficulty|{{#expr:({{#cargo_query:table=btd4_towers|fields=CONCAT(cost_M)|where=name="{{{tower}}}"|no html}}*0.8)+{{#cargo_query:table=btd4_upgrades|fields=ROUND(SUM(cost_M*0.8),0)|group by=tower|where=tower="{{{tower}}}" AND tier<="{{{tier}}}"|no html}}}}}}
|}
|}
|-
|-

Latest revision as of 05:48, 4 April 2026

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
name Fname F

no description

Unknownoptional
name Mname M

no description

Unknownoptional
image Fimage F

no description

Unknownoptional
image Mimage M

no description

Unknownoptional
image Cimage C

no description

Unknownoptional
description Fdescription F

no description

Unknownoptional
description Mdescription M

no description

Unknownoptional
towertower

no description

Unknownoptional
tiertier

no description

Unknownoptional
cost Fcost F

no description

Unknownoptional
cost Mcost M

no description

Unknownoptional
This template defines the Cargo table "btd4_upgrades". View table.