Template:BMC upgrade info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(29 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=bmc_upgrades
<includeonly>{|class="info"
|name_F      =String
!class="head"|{{{name M}}}
|name_M      =String
|-
|icon_F      =File
|<tabs>
|icon_M      =File
<tab name="Mobile">
|image_F      =File
{|class="subtable main centered-cells"
|image_M      =File
|colspan="4"|[[File:{{{image M}}}|200px]]
|description_F=String
|-
|description_M=String
|[[File:{{{icon M}}}|50x50px]]
 
|colspan="3" style="text-align:left"|{{{description M}}}
|tower=String
|}
|path =Integer
</tab>
|tier =Integer
{{#if:{{{image F|}}}|<tab name="Flash">
 
{{{!}}class="subtable main centered-cells"
|cost_F=Integer
{{!}}colspan="4"{{!}}[[File:{{{image F}}}|200px]]
|cost_M=Integer
{{!}}-
{{!}}[[File:{{{icon F}}}|50x50px]]
{{!}}colspan="3" style="text-align:left"{{!}}{{{description F}}}
{{!}}}
</tab>}}
</tabs>
{|class="subtable centered-cells"
!colspan="2"|Tower
!Path
!Tier
|-
|colspan="2"|[[{{{tower}}} (BMC)|{{{tower}}}]]
|{{{path}}}
|{{{tier}}}
|}
{|class="subtable"
!colspan="2"|Upgrade cost
|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
|colspan="3"|{{#if:{{#ifexpr:{{{level|1}}} > 1|a}}{{#if:{{{building|}}}|b}}|
{{#ifexpr:{{{level|1}}} > 1|[[City Level]] {{{level}}}}}<br>{{#if:{{{building|}}}|{{{building}}} built}}|—}}
|-
!colspan="2"|Research 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|Research 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|[[Experience|XP]] for researching
|colspan=3|[[File:BMCM ui_xp_icon.png|x20px|link=Experience|Experience]] {{formatnum:{{{xp|0}}}}}
|}
|-
<!-- upgrade prev/next -->
|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


|level  =Integer
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1)
|building=String
|delimiter=
|cc_F    =Integer
}}
|cc_M    =Integer
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_upgrades
|bs      =Integer
|time_F  =Integer
|time_M  =Integer
|xp      =Integer
}}</noinclude>
<includeonly>{{#cargo_store:_table=bmc_upgrades
|name_F      ={{{name F|}}}
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|name_M      ={{{name M|}}}
Line 52: Line 81:
}}[[Category:{{{tower}}} upgrades in BMC]][[Category:Path {{{path}}} upgrades in BMC]][[Category:Tier {{{tier}}} upgrades in BMC]]{{#seo:
}}[[Category:{{{tower}}} upgrades in BMC]][[Category:Path {{{path}}} upgrades in BMC]][[Category:Tier {{{tier}}} upgrades in BMC]]{{#seo:
|image={{{image M|}}}
|image={{{image M|}}}
|keywords=BMC {{{name M|}}}
|keywords=BMC {{{name M|}}}, Bloons Monkey City {{{name M|}}}
}}</includeonly>
}}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_upgrades
{|class="info"
|name_F      =String
!class="head"|{{{name M}}}
|name_M      =String
|-
|icon_F      =File
|
|icon_M      =File
{|class="info-sub main centered-cells"
|image_F      =File
|colspan=4|[[File:{{{image M}}}|150px]]
|image_M      =File
|-
|description_F=String
|[[File:{{{icon M}}}|50x50px]]
|description_M=String
|colspan=3 style="text-align:left"|''{{{description M}}}''
 
|}
|tower=String
|-
|path =Integer
|
|tier =Integer
{|class="info-sub centered-cells"
 
!colspan=2|Tower
|cost_F=Integer
!Path
|cost_M=Integer
!Tier
 
|-
|level  =Integer
|colspan=2|[[{{{tower}}} (BMC)|{{{tower}}}]]
|building=Wikitext
|{{{path}}}
|cc_F    =Integer
|{{{tier}}}
|cc_M    =Integer
|}
|bs      =Integer
|-
|time_F  =Integer
|
|time_M  =Integer
{|class="info-sub"
|xp      =Integer
|-
}}{{/doc}}</noinclude>
!colspan=2|Unlock cost
|colspan=3|{{#if:{{{bs|}}}|{{BMCF bs|{{{bs|0}}}}}}}{{BMCF cc|{{{cc F|0}}}}} <small>(Flash)</small><br>{{BMCM cc|{{{cc M|0}}}}} <small>(mobile)</small>
|-
!colspan=2|[[Special Building]] required
|colspan=3|{{{building|''None''}}}
|-
!colspan=2|Time to research
|colspan=3|{{#ifeq:{{{time F|}}}|{{{time M|}}}|{{#time:z "days," G "hours," i "minutes"|@{{#expr:{{{time F|0}}} * 60}}}}|{{#time:z "days," G "hours," i "minutes"|@{{#expr:{{{time F|0}}} * 60}}}} <small>(Flash)</small><br>{{#time:z "days," G "hours," i "minutes"|@{{#expr:{{{time M|0}}} * 60}}}} <small>(mobile)</small>}}
|-
!colspan=2|[[City XP|XP]] rewarded
|colspan=3|{{{xp|0}}}
|}
|}<noinclude>{{/doc}}[[Category:Infoboxes]][[Category:BMC templates]]</noinclude>