Template:BMC tower info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "<div class="info">" to "<div class="info subtable-container">"
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div><!--
--><tabs><tab name="Multiplatform">
{|class="subtable main centered"
|colspan="4"|[[File:{{{image M}}}|200px|Portrait of {{{name}}}]]
|-
|-
|
|[[File:{{{icon M}}}|50px]]
{|class="info-sub main centered-cells"
|colspan="3" style="text-align:left"|{{{description M}}}
|colspan="4"|[[File:{{{image M}}}|100px]]
|}
</tab>
{{#if:{{{image F|}}}|<tab name="Flash">
{|class="subtable main centered"
|colspan="4"|[[File:{{{image F}}}|200px|Portrait of {{{name}}}]]
|-
|-
|[[File:{{{icon M}}}|50x50px]]
|[[File:{{{icon F}}}|50px]]
|colspan="3" style="text-align:left"|{{{description M}}}
|colspan="3" style="text-align:left"|{{{description F}}}
|}
|}
{|class="info-sub"
</tab>}}
</tabs>
{|class="subtable"
!Cost
!Cost
|colspan="2"|{{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||'''[[Bloons Monkey City (Flash)|Flash]]''': ${{formatnum:{{{cost F|0}}}}}<br>'''[[Bloons Monkey City (mobile)|Mobile]]''':}} ${{formatnum:{{{cost M|0}}}}}
|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>)
}}
|-
|-
!Hotkey
!Hotkey
|colspan="2"|{{key|{{{hotkey}}}}}
|colspan="2"|{{key|{{{hotkey}}}}}
|-
|-
!Favoured on
|colspan="2"|{{#cargo_query:table=bmc_terrain
|fields=CONCAT("[[", _pageName, "|", name, "]]") = text
|where=favoured HOLDS "[[{{{name|}}} (BMC)|{{{name|}}}]]"
|default=—}}
|-
!Restricted on
|colspan="2"|{{#cargo_query:table=bmc_terrain
|fields=CONCAT("[[", _pageName, "|", name, "]]") = text
|where=restricted HOLDS "[[{{{name|}}} (BMC)|{{{name|}}}]]"
|default=—}}
|}
{|class="subtable mw-collapsible mw-collapsed"
!colspan="3"|My Monkeys bio
!colspan="3"|My Monkeys bio
|-
|-
Line 31: Line 55:
|-
|-
!Upgrades
!Upgrades
|colspan="2"|{{#if:{{{upgrades|}}}|{{{upgrades|}}}|—}}
|colspan="2"|{{#if:{{{upgrades M|}}}|{{{upgrades M|}}}{{#ifeq:{{{upgrades F|{{{upgrades M|}}}}}}||{{g|BMCM}}<br>{{{upgrades F|}}}{{g|BMCF}}}}|—}}
|}
|}</div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_towers
|}{{#cargo_store:_table=bmc_towers
|id={{{id|}}}
|id={{{id|}}}


Line 48: Line 71:
}}[[Category:Towers in BMC]]{{#seo:
}}[[Category:Towers in BMC]]{{#seo:
|image={{{image M|}}}
|image={{{image M|}}}
|keywords=BMC {{{name M|}}}, Monkey City {{{name M|}}}
|keywords=BMC {{{name|}}}, Monkey City {{{name|}}}
}}</includeonly><noinclude>{{/doc}}
}}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_towers
<div>{{#cargo_declare:_table=bmc_towers
|id=String
|id=String


Line 63: Line 85:
|cost_F=Integer
|cost_F=Integer
|cost_M=Integer
|cost_M=Integer
}}</div></noinclude>
}}{{/doc}}</noinclude>