Template:BMC building info: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Pymonkibot (talk | contribs) m Text replacement - "info-sub" to "subtable" |
||
| (33 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
< | <includeonly>{|class="info" | ||
| | !class="head"|{{{name M|{{{name F|}}}}}} | ||
| | |- | ||
|<tabs> | |||
| | {{#if:{{{name M|}}}|<tab name="Mobile"> | ||
| | {|class="subtable main centered-cells" | ||
| | |{{#ifexist:File:{{{image M|???}}}|[[File:{{{image M}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | ||
| | |- | ||
| | |{{{description M}}} | ||
| | |} | ||
</tab>}} | |||
| | {{#if:{{{name F|}}}|<tab name="Flash"> | ||
| | {|class="subtable main centered-cells" | ||
| | |{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | ||
| | |- | ||
|{{{description F}}} | |||
| | |} | ||
| | </tab>}} | ||
| | </tabs> | ||
{|class="subtable" | |||
| | !colspan=2|Prerequisites | ||
| | |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}}|—}} | ||
| | |- | ||
| | !colspan=2|Terrain requirements | ||
|colspan=3|{{#ifeq:{{{required terrain|}}}||Cannot be built on:<br>{{{disallowed terrain}}}|Can only be built on:<br>{{{required terrain}}}}} | |||
| | |- | ||
| | !colspan="2"|Footprint | ||
| | |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|}}}|)}} | ||
| | |- | ||
| | {{#if:{{{levels per quota|}}}|!colspan="2"{{!}}Quota | ||
{{!}}colspan="3"{{!}}{{{base quota|}}} when unlocked<br>+1 per {{{levels per quota|}}} level{{#ifexpr:{{{levels per quota|1}}}>1|s}} after unlocking}} | |||
| | |- | ||
| | !colspan=2|Build cost | ||
}}< | |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|}}}}}}} | ||
|- | |||
!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 45: | Line 55: | ||
|description_M={{{description M|}}} | |description_M={{{description M|}}} | ||
|category ={{{category|}}} | |||
|tile_footprint_x ={{{tile footprint x|}}} | |tile_footprint_x ={{{tile footprint x|}}} | ||
|tile_footprint_y ={{{tile footprint y|}}} | |tile_footprint_y ={{{tile footprint y|}}} | ||
|sub_footprint_x ={{{sub footprint x|}}} | |||
|sub_footprint_y ={{{sub footprint y|}}} | |||
|disallowed_terrain={{{disallowed terrain|}}} | |disallowed_terrain={{{disallowed terrain|}}} | ||
|required_terrain ={{{required terrain|}}} | |required_terrain ={{{required terrain|}}} | ||
| | |requires_building={{{requires building|}}} | ||
| | |requires_mission ={{{requires mission|}}} | ||
| | |level_F ={{{level F|}}} | ||
|level_M ={{{level M|}}} | |||
|base_quota ={{{base quota|}}} | |||
|levels_per_quota ={{{levels per quota|}}} | |||
|cc_F ={{{cc F|}}} | |cc_F ={{{cc F|}}} | ||
| | |cc_M ={{{cc M|}}} | ||
|power_F={{{power F|}}} | |power_F={{{power F|}}} | ||
|power_M={{{power M|}}} | |||
|time_F ={{{time F|}}} | |time_F ={{{time F|}}} | ||
|time_M ={{{time M|}}} | |||
|xp_F ={{{xp F|}}} | |||
|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 | |||
| | |cc_F =Integer | ||
| | |cc_M =Integer | ||
|power_F=Integer | |||
|power_M=Integer | |||
|time_F =Integer | |||
| | |time_M =Integer | ||
|xp_F =Integer | |||
|xp_M =Integer | |||
}}{{/doc}}</noinclude> | |||
| | |||
| | |||
| | |||
Latest revision as of 05:53, 4 April 2026
This template defines the Cargo table "bmc_buildings". View table.
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id | no description | Unknown | optional |
| order | order | no description | Unknown | optional |
| name F | name F | no description | Unknown | optional |
| name M | name M | no description | Unknown | optional |
| image F | image F | no description | Unknown | optional |
| image M | image M | no description | Unknown | optional |
| description F | description F | no description | Unknown | optional |
| description M | description M | no description | Unknown | optional |
| category | category | no description | Unknown | optional |
| tile footprint x | tile footprint x | no description | Unknown | optional |
| tile footprint y | tile footprint y | no description | Unknown | optional |
| sub footprint x | sub footprint x | no description | Unknown | optional |
| sub footprint y | sub footprint y | no description | Unknown | optional |
| disallowed terrain | disallowed terrain | no description | Unknown | optional |
| required terrain | required terrain | no description | Unknown | optional |
| requires building | requires building | no description | Unknown | optional |
| requires mission | requires mission | no description | Unknown | optional |
| level F | level F | no description | Unknown | optional |
| level M | level M | no description | Unknown | optional |
| base quota | base quota | no description | Unknown | optional |
| levels per quota | levels per quota | no description | Unknown | optional |
| cc F | cc F | no description | Unknown | optional |
| cc M | cc M | no description | Unknown | optional |
| power F | power F | no description | Unknown | optional |
| power M | power M | no description | Unknown | optional |
| time F | time F | no description | Unknown | optional |
| time M | time M | no description | Unknown | optional |
| xp F | xp F | no description | Unknown | optional |
| xp M | xp M | no description | Unknown | optional |