Template:BMC upgrade info: Difference between revisions

Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
Pymonkibot (talk | contribs)
m Text replacement - "<div class="info">" to "<div class="info subtable-container">"
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name M}}}
--><div class="head">{{{name M}}}</div><!--
--><tabs><tab name="Multiplatform">
{|class="subtable main centered"
|[[File:{{{image M}}}|200px|Portrait of {{{name M}}}]]
|-
|-
|<tabs>
|class="flex-left-icon-wrapper"|[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
<tab name="Mobile">
{|class="subtable main centered-cells"
|colspan="4"|[[File:{{{image M}}}|200px]]
|-
|[[File:{{{icon M}}}|50x50px]]
|colspan="3" style="text-align:left"|{{{description M}}}
|}
|}
</tab>
</tab>
{{#if:{{{image F|}}}|<tab name="Flash">
{{#if:{{{image F|}}}|<tab name="Flash">
{{{!}}class="subtable main centered-cells"
{{{!}}class="subtable main centered"
{{!}}colspan="4"{{!}}[[File:{{{image F}}}|200px]]
{{!}}[[File:{{{image F}}}|200px|Portrait of {{{name F}}}]]
{{!}}-
{{!}}-
{{!}}[[File:{{{icon F}}}|50x50px]]
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}}
{{!}}colspan="3" style="text-align:left"{{!}}{{{description F}}}
{{!}}}
{{!}}}
</tab>}}
</tab>}}
</tabs>
</tabs>
{|class="subtable centered-cells"
{|class="subtable"
!colspan="2"|Tower
!Tower
!Path
|colspan="2"|[[{{{tower}}} (BMC)|{{{tower}}}]] — Path {{{path}}} — Tier {{{tier}}}
!Tier
|-
|-
|colspan="2"|[[{{{tower}}} (BMC)|{{{tower}}}]]
![[Cash]] cost
|{{{path}}}
|colspan="2"|${{formatnum:{{{cost M|0}}}}} {{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||<!--
|{{{tier}}}
--> (<small>[[Bloons Monkey City (multiplatform)|Multiplatform version]]</small>)<br>${{formatnum:{{{cost F|0}}}}} (<small>[[Bloons Monkey City (Flash)|Flash version]]</small>)
|}
}}
{|class="subtable"
|-
!colspan="2"|Upgrade cost
!colspan="3"|Research
|colspan="3"|{{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||'''[[Bloons Monkey City (Flash)|Flash]]''': ${{formatnum:{{{cost F|}}}}}<br>'''[[Bloons Monkey City (mobile)|Mobile]]''':}} ${{formatnum:{{{cost M|}}}}}
|-
|-
!colspan="2"|Prerequisites
!Requirements
|colspan="3"|{{#if:{{#ifexpr:{{{level|1}}} > 1|a}}{{#if:{{{building|}}}|b}}|
|colspan="2"|{{#if:{{#ifexpr:{{{level|1}}} > 1|a}}{{#if:{{{building|}}}|b}}|
{{#ifexpr:{{{level|1}}} > 1|[[City Level]] {{{level}}}}}<br>{{#if:{{{building|}}}|{{{building}}} built}}|—}}
{{#ifexpr:{{{level|1}}} > 1|[[City Level]] {{{level}}}}}<br>{{#if:{{{building|}}}|{{{building}}} built}}|—}}
|-
|-
!colspan="2"|Research cost
!Cost
|colspan="3"|{{#ifexpr:{{{cc F|{{{cc M|}}}}}} != {{{cc M|}}} or {{{bs|0}}}>0|'''Flash''': [[File:BMCF city cash icon.svg|x20px|link=City Cash]] {{formatnum:{{{cc F|0}}}}}{{#ifexpr:{{{bs|0}}}>0|, [[File:BMCF bloonstone icon.svg|17px|link=Bloonstone]] {{formatnum:{{{bs|0}}}}}}}<br>'''Mobile''':}} [[File:BMCM ui_cash_icon.png|x20px|link=City Cash|City Cash]] {{formatnum:{{{cc M|0}}}}}
|colspan="2"|{{BMCM cc|{{{cc M}}}|size=x17px}} {{#ifexpr:{{{bs|0}}} > 0|<!--
--> (<small>[[Bloons Monkey City (multiplatform)|Multiplatform version]]</small>)<br><!--
--> {{BMCF cc|{{{cc F}}}|size=x17px}} {{#ifexpr:{{{bs|0}}}>0|{{BMCF bs|{{{bs}}}|size=x17px}}}} (<small>[[Bloons Monkey City (Flash)|Flash version]]</small>)
}}
|-
|-
!colspan=2|Research time
!Time
|colspan=3|{{#ifeq:{{{time F|{{{time M|}}}}}}|{{{time M|0}}}||'''Flash''': {{BMC time format|{{{time F|0}}}}}<br>'''Mobile''':}} {{BMC time format|{{{time M|0}}}}}
|colspan="2"|{{BMC time format|{{{time M|0}}}}} {{#ifeq:{{{time F|{{{time M|}}}}}}|{{{time M|}}}||<!--
--> (<small>[[Bloons Monkey City (multiplatform)|Multiplatform version]]</small>)<br>{{BMC time format|{{{time F|0}}}}} (<small>[[Bloons Monkey City (Flash)|Flash version]]</small>)
}}
|-
|-
!colspan=2|[[Experience|XP]] for researching
![[Experience|XP]] given
|colspan=3|[[File:BMCM ui_xp_icon.png|x20px|link=Experience|Experience]] {{formatnum:{{{xp|0}}}}}
|colspan="2"|{{BMCM xp|{{{xp}}}|size=x17px}}
|}
|}
|-
<!-- upgrade prev/next -->
<!-- upgrade prev/next -->
|class="foot"|{{#cargo_query:table=bmc_upgrades
<div class="foot">{{#cargo_query:table=bmc_upgrades
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text


|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1)
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1)
|delimiter=
|delimiter=
}}
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_upgrades
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_upgrades
|name_F      ={{{name F|}}}
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|name_M      ={{{name M|}}}