Template:BMC building info: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(28 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=bmc_buildings
<includeonly>{|class="info"
|id=String
!class="head"|{{{name M|{{{name F|}}}}}}
|category_order=Integer
|-
 
|<tabs>
|name_F      =String
{{#if:{{{name M|}}}|<tab name="Mobile">
|name_M      =String
{|class="subtable main centered-cells"
|image_F      =File
|{{#ifexist:File:{{{image M|???}}}|[[File:{{{image M}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}}
|image_M      =File
|-
|description_F=String
|{{{description M}}}
|description_M=String
|}
 
</tab>}}
|category          =String
{{#if:{{{name F|}}}|<tab name="Flash">
|tile_footprint_x  =Integer
{|class="subtable main centered-cells"
|tile_footprint_y  =Integer
|{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}}
|sub_footprint_x  =Integer
|-
|sub_footprint_y  =Integer
|{{{description F}}}
|disallowed_terrain=List (, ) of String
|}
|required_terrain  =List (, ) of String
</tab>}}
 
</tabs>
|level_F          =Integer
{|class="subtable"
|level_M          =Integer
!colspan=2|Prerequisites
|requires_building=String
|colspan=3|{{#if:{{#ifexpr:{{{level F|1}}} > 1|a}}{{#ifexpr:{{{level M|1}}} > 1|a}}{{#if:{{{requires building|}}}|b}}|
 
{{#ifexpr:{{{level F|1}}} > 1 or {{{level M|1}}} > 1|{{#ifeq:{{{level F|{{{level M|}}}}}}|{{{level M|{{{level F|}}}}}}|[[City Level]] {{{level M|{{{level F|}}}}}}|[[City Level]] {{{level F|}}} <small>(Flash)</small><br>City Level {{{level M|}}} <small>(mobile)</small>}}<br>}}{{#if:{{{requires building|}}}|{{{requires building}}} built}}|—}}
 
|-
|cc_F  =Integer
!colspan=2|Terrain requirements
|cc_M  =Integer
|colspan=3|{{#ifeq:{{{required terrain|}}}||Cannot be built on:<br>{{{disallowed terrain}}}|Can only be built on:<br>{{{required terrain}}}}}
|power_F=Integer
|-
|power_M=Integer
!colspan="2"|Footprint
|time_F =Integer
|colspan="3"|{{#if:{{{sub footprint x|}}}{{{sub footprint y|}}}|{{{sub footprint x|}}}×{{{sub footprint y|}}} (}}{{{tile footprint x|}}}×{{{tile footprint y|}}} [[tile]]s{{#if:{{{sub footprint x|}}}{{{sub footprint y|}}}|)}}
|time_M =Integer
|-
|xp_F  =Integer
{{#if:{{{levels per quota|}}}|!colspan="2"{{!}}Quota
|xp_M  =Integer
{{!}}colspan="3"{{!}}{{{base quota|}}} when unlocked<br>+1 per {{{levels per quota|}}} level{{#ifexpr:{{{levels per quota|1}}}>1|s}} after unlocking}}
 
|-
|base_quota      =Integer
!colspan=2|Build cost
|levels_per_quota=Integer
|colspan=3|{{#ifeq:{{{cc F|{{{cc M|}}}}}}|{{{cc M|{{{cc F|}}}}}}||'''Flash''': {{BMCF cc|{{{cc F|}}}}}<br>'''Mobile''':}} {{#if:{{{cc M|}}}|{{BMCM cc|{{{cc M|}}}}}|{{BMCF cc|{{{cc F|}}}}}}}
}}</noinclude>
|-
<includeonly>{{#cargo_store:_table=bmc_buildings
!colspan=2|Power used
|colspan=3|{{#ifeq:{{{power F|{{{power M|}}}}}}|{{{power M|{{{power F|}}}}}}||'''Flash''': {{BMCF power|{{{power F|}}}}}<br>'''Mobile''':}} {{#if:{{{power M|}}}|{{BMCM power|{{{power M|0}}}}}|{{BMCF power|{{{power F|0}}}}}}}
|-
!colspan=2|Build time
|colspan=3|{{#ifeq:{{{time M|}}}|0|Instant|{{#ifeq:{{{time F|{{{time M|0}}}}}}|{{{time M|{{{time F|0}}}}}}||'''Flash''': {{BMC time format|{{{time F|0}}}}}<br>'''Mobile''':}} {{BMC time format|{{{time M|{{{time F|0}}}}}}}}}}
|-
!colspan=2|XP for building
|colspan=3|{{#ifeq:{{{xp F|{{{xp M|}}}}}}|{{{xp M|{{{xp F|}}}}}}||'''Flash''': {{BMCF xp|{{{xp F|}}}}}<br>'''Mobile''':}} {{#if:{{{xp M|}}}|{{BMCM xp|{{{xp M|0}}}}}|{{BMCF xp|{{{xp F|0}}}}}}}
|}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_buildings
|id={{{id|}}}
|id={{{id|}}}
|category_order={{{order|}}}
|category_order={{{order|}}}
Line 54: Line 63:
|required_terrain  ={{{required terrain|}}}
|required_terrain  ={{{required terrain|}}}


|requires_building={{{requires building|}}}
|requires_mission ={{{requires mission|}}}
|level_F          ={{{level F|}}}
|level_F          ={{{level F|}}}
|level_M          ={{{level M|}}}
|level_M          ={{{level M|}}}
|requires_building={{{requires building|}}}
|base_quota      ={{{base quota|}}}
|levels_per_quota ={{{levels per quota|}}}


|cc_F  ={{{cc F|}}}
|cc_F  ={{{cc F|}}}
Line 66: Line 78:
|xp_F  ={{{xp F|}}}
|xp_F  ={{{xp F|}}}
|xp_M  ={{{xp M|}}}
|xp_M  ={{{xp M|}}}
}}[[Category:{{{category}}} Buildings]]{{#seo:
|image={{#if:{{{image M|}}}|{{{image M|}}}|{{{image F|}}}}}
|keywords=BMC {{{name M|}}}
}}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_buildings
|id=String
|category_order=Integer
|name_F      =String
|name_M      =String
|image_F      =File
|image_M      =File
|description_F=String
|description_M=String
|category          =String
|tile_footprint_x  =Integer
|tile_footprint_y  =Integer
|sub_footprint_x  =Integer
|sub_footprint_y  =Integer
|disallowed_terrain=List (, ) of String
|required_terrain  =List (, ) of String
|requires_building=String
|requires_mission =String
|level_F          =Integer
|level_M          =Integer
|base_quota      =Integer
|levels_per_quota =Integer


|base_quota      ={{{base quota|}}}
|cc_F  =Integer
|levels_per_quota={{{levels per quota|}}}
|cc_M  =Integer
}}[[Category:{{{category}}} Buildings]]</includeonly>
|power_F=Integer
{|class="info"
|power_M=Integer
!class="head"|{{{name M}}}
|time_F =Integer
|-
|time_M =Integer
|
|xp_F  =Integer
{|class="info-sub main centered-cells"
|xp_M  =Integer
<!--|[[File:{{{image M}}}|150px]]-->
}}{{/doc}}</noinclude>
|''{{{description M}}}''
|}
|-
|
{|class="info-sub"
!colspan=2|Prerequisites
|colspan=3|{{#if:{{#ifexpr:{{{level M|1}}} > 1|a}}{{#if:{{{building|}}}|b}}|
{{#ifexpr:{{{level|1}}} > 1|{{#ifeq:{{{level F|{{{level M|}}}}}}|{{{level M|}}}|[[City Level]] {{{level M|}}}|[[City Level]] {{{level F|}}} <small>(Flash)</small><br>City Level {{{level M|}}} <small>(mobile)</small>}}}}<br>{{#if:{{{requires building|}}}|[[{{{requires building}}}]] built}}|''None''}}
|-
!colspan=2|Terrain requirements
|colspan=3|{{#ifeq:{{{required terrain|}}}||Cannot be placed on:<br>{{{disallowed terrain}}}|Can only be placed on:<br>{{{required terrain}}}}}
|-
!colspan=2|Cost to build
|colspan=3|{{#ifeq:{{{cc F|{{{cc M|}}}}}}|{{{cc M|}}}|{{{cc M|}}}|{{{cc F|}}} <small>(Flash)</small><br>{{{cc M|}}} <small>(mobile)</small>}}
|-
!colspan=2|Power used
|colspan=3|{{#ifeq:{{{power F|{{{power M|}}}}}}|{{{power M|}}}|{{{power M|}}}|{{{power F|}}} <small>(Flash)</small><br>{{{power M|}}} <small>(mobile)</small>}}
|-
!colspan=2|Time to build
|colspan=3|{{#ifeq:{{{time F|{{{time M|0}}}}}}|{{{time M|0}}}|{{BMC time format|{{{time M|0}}}}}|{{BMC time format|{{{time F|0}}}}} <small>(Flash)</small><br>{{BMC time format|{{{time M|0}}}}} <small>(mobile)</small>}}
|-
!colspan=2|XP for building
|colspan=3|{{#ifeq:{{{xp F|{{{xp M|}}}}}}|{{{xp M|}}}|{{{xp M|}}}|{{{xp F|}}} <small>(Flash)</small><br>{{{xp M|}}} <small>(mobile)</small>}}
|}
|}<noinclude>{{/doc}}[[Category:Infoboxes]][[Category:BMC templates]]</noinclude>

Latest revision as of 05:53, 4 April 2026

This template defines the Cargo table "bmc_buildings". View table.

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
idid

no description

Unknownoptional
orderorder

no description

Unknownoptional
name Fname F

no description

Unknownoptional
name Mname M

no description

Unknownoptional
image Fimage F

no description

Unknownoptional
image Mimage M

no description

Unknownoptional
description Fdescription F

no description

Unknownoptional
description Mdescription M

no description

Unknownoptional
categorycategory

no description

Unknownoptional
tile footprint xtile footprint x

no description

Unknownoptional
tile footprint ytile footprint y

no description

Unknownoptional
sub footprint xsub footprint x

no description

Unknownoptional
sub footprint ysub footprint y

no description

Unknownoptional
disallowed terraindisallowed terrain

no description

Unknownoptional
required terrainrequired terrain

no description

Unknownoptional
requires buildingrequires building

no description

Unknownoptional
requires missionrequires mission

no description

Unknownoptional
level Flevel F

no description

Unknownoptional
level Mlevel M

no description

Unknownoptional
base quotabase quota

no description

Unknownoptional
levels per quotalevels per quota

no description

Unknownoptional
cc Fcc F

no description

Unknownoptional
cc Mcc M

no description

Unknownoptional
power Fpower F

no description

Unknownoptional
power Mpower M

no description

Unknownoptional
time Ftime F

no description

Unknownoptional
time Mtime M

no description

Unknownoptional
xp Fxp F

no description

Unknownoptional
xp Mxp M

no description

Unknownoptional