Template:BMC upgrade info: Difference between revisions
mNo edit summary |
Pymonkibot (talk | contribs) m Text replacement - "info-sub" to "subtable" |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
!class="head"|{{{name M}}} | !class="head"|{{{name M}}} | ||
|- | |- | ||
| | |<tabs> | ||
{|class=" | <tab name="Mobile"> | ||
|colspan=4|[[File:{{{image M}}}| | {|class="subtable main centered-cells" | ||
|colspan="4"|[[File:{{{image M}}}|200px]] | |||
|- | |- | ||
|[[File:{{{icon M}}}|50x50px | |[[File:{{{icon M}}}|50x50px]] | ||
|colspan=3 style="text-align:left"|{{{description M}}} | |colspan="3" style="text-align:left"|{{{description M}}} | ||
|} | |} | ||
{|class=" | </tab> | ||
!colspan=2|Tower | {{#if:{{{image F|}}}|<tab name="Flash"> | ||
{{{!}}class="subtable main centered-cells" | |||
{{!}}colspan="4"{{!}}[[File:{{{image F}}}|200px]] | |||
{{!}}- | |||
{{!}}[[File:{{{icon F}}}|50x50px]] | |||
{{!}}colspan="3" style="text-align:left"{{!}}{{{description F}}} | |||
{{!}}} | |||
</tab>}} | |||
</tabs> | |||
{|class="subtable centered-cells" | |||
!colspan="2"|Tower | |||
!Path | !Path | ||
!Tier | !Tier | ||
|- | |- | ||
|colspan=2|[[{{{tower}}} (BMC)|{{{tower}}}]] | |colspan="2"|[[{{{tower}}} (BMC)|{{{tower}}}]] | ||
|{{{path}}} | |{{{path}}} | ||
|{{{tier}}} | |{{{tier}}} | ||
|} | |} | ||
{|class=" | {|class="subtable" | ||
!colspan="2"|Upgrade cost | !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="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|}}}}} | ||
| Line 24: | Line 35: | ||
!colspan="2"|Prerequisites | !colspan="2"|Prerequisites | ||
|colspan="3"|{{#if:{{#ifexpr:{{{level|1}}} > 1|a}}{{#if:{{{building|}}}|b}}| | |colspan="3"|{{#if:{{#ifexpr:{{{level|1}}} > 1|a}}{{#if:{{{building|}}}|b}}| | ||
{{#ifexpr:{{{level|1}}} > 1|[[City Level]] {{{level}}}}}<br>{{#if:{{{building|}}}| | {{#ifexpr:{{{level|1}}} > 1|[[City Level]] {{{level}}}}}<br>{{#if:{{{building|}}}|{{{building}}} built}}|—}} | ||
|- | |- | ||
!colspan="2"|Research cost | !colspan="2"|Research cost | ||
| Line 35: | Line 46: | ||
|colspan=3|[[File:BMCM ui_xp_icon.png|x20px|link=Experience|Experience]] {{formatnum:{{{xp|0}}}}} | |colspan=3|[[File:BMCM ui_xp_icon.png|x20px|link=Experience|Experience]] {{formatnum:{{{xp|0}}}}} | ||
|} | |} | ||
|}{{#cargo_store:_table=bmc_upgrades | |- | ||
<!-- 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 | |||
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) | |||
|delimiter= | |||
}} | |||
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_upgrades | |||
|name_F ={{{name F|}}} | |name_F ={{{name F|}}} | ||
|name_M ={{{name M|}}} | |name_M ={{{name M|}}} | ||
| Line 62: | 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><noinclude | }}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_upgrades | ||
|name_F =String | |name_F =String | ||
|name_M =String | |name_M =String | ||
| Line 82: | Line 100: | ||
|level =Integer | |level =Integer | ||
|building= | |building=Wikitext | ||
|cc_F =Integer | |cc_F =Integer | ||
|cc_M =Integer | |cc_M =Integer | ||
| Line 89: | Line 107: | ||
|time_M =Integer | |time_M =Integer | ||
|xp =Integer | |xp =Integer | ||
}} | }}{{/doc}}</noinclude> | ||