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> | <includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!-- | ||
!class=" | --><div class="head">{{{name M}}}</div><!-- | ||
--><tabs><tab name="Multiplatform"> | |||
{|class="subtable main centered" | |||
|[[File:{{{image M}}}|200px|Portrait of {{{name M}}}]] | |||
|- | |- | ||
|class="flex-left-icon-wrapper"|[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}} | |||
| | |||
|} | |} | ||
</tab> | </tab> | ||
{{#if:{{{image F|}}}|<tab name="Flash"> | {{#if:{{{image F|}}}|<tab name="Flash"> | ||
{{{!}}class="subtable main centered | {{{!}}class="subtable main centered" | ||
{{!}}[[File:{{{image F}}}|200px|Portrait of {{{name F}}}]] | |||
{{!}}- | {{!}}- | ||
{{!}}[[File:{{{icon F}}}| | {{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}} | ||
{{ | |||
{{!}}} | {{!}}} | ||
</tab>}} | </tab>}} | ||
</tabs> | </tabs> | ||
{|class="subtable | {|class="subtable" | ||
!colspan="2"| | !Tower | ||
|colspan="2"|[[{{{tower}}} (BMC)|{{{tower}}}]] — Path {{{path}}} — Tier {{{tier}}} | |||
|- | |- | ||
|colspan="2"| | ![[Cash]] cost | ||
| | |colspan="2"|${{formatnum:{{{cost M|0}}}}} {{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||<!-- | ||
--> (<small>[[Bloons Monkey City (multiplatform)|Multiplatform version]]</small>)<br>${{formatnum:{{{cost F|0}}}}} (<small>[[Bloons Monkey City (Flash)|Flash version]]</small>) | |||
}} | |||
|- | |||
!colspan="3"|Research | |||
|- | |- | ||
! | !Requirements | ||
|colspan=" | |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}}|—}} | ||
|- | |- | ||
! | !Cost | ||
|colspan=" | |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| | !Time | ||
| | |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>) | |||
}} | |||
|- | |- | ||
! | ![[Experience|XP]] given | ||
|colspan= | |colspan="2"|{{BMCM xp|{{{xp}}}|size=x17px}} | ||
|} | |} | ||
<!-- upgrade prev/next --> | <!-- upgrade prev/next --> | ||
<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 | ||
|name_F ={{{name F|}}} | |name_F ={{{name F|}}} | ||
|name_M ={{{name M|}}} | |name_M ={{{name M|}}} | ||