Template:BMC building info: Difference between revisions
mNo edit summary |
Pymonkibot (talk | contribs) m Text replacement - "info-sub" to "subtable" |
||
| (10 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{|class="info" | <includeonly>{|class="info" | ||
!class="head"|{{{name M}}} | !class="head"|{{{name M|{{{name F|}}}}}} | ||
|- | |- | ||
|<tabs> | |<tabs> | ||
<tab name="Mobile"> | {{#if:{{{name M|}}}|<tab name="Mobile"> | ||
{|class=" | {|class="subtable main centered-cells" | ||
|{{#ifexist:File:{{{image M|???}}}|[[File:{{{image M}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | |{{#ifexist:File:{{{image M|???}}}|[[File:{{{image M}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | ||
|- | |- | ||
|{{{description M}}} | |{{{description M}}} | ||
|} | |} | ||
</tab> | </tab>}} | ||
{{#if:{{{name F|}}}| | {{#if:{{{name F|}}}|<tab name="Flash"> | ||
<tab name="Flash"> | {|class="subtable main centered-cells" | ||
{|class=" | |||
|{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | |{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|150px]]|[[File:missing image.png|150px|link=Special:Upload?wpDestFile={{{image M|}}}]]}} | ||
|- | |- | ||
| Line 19: | Line 18: | ||
</tab>}} | </tab>}} | ||
</tabs> | </tabs> | ||
{|class=" | {|class="subtable" | ||
!colspan=2|Prerequisites | !colspan=2|Prerequisites | ||
|colspan=3|{{#if:{{#ifexpr:{{{level M|1}}} > 1|a}}{{#if:{{{requires building|}}}|b}}| | |colspan=3|{{#if:{{#ifexpr:{{{level F|1}}} > 1|a}}{{#ifexpr:{{{level M|1}}} > 1|a}}{{#if:{{{requires building|}}}|b}}| | ||
{{#ifexpr:{{{level M|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}}|—}} | {{#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=2|Terrain requirements | ||
|colspan=3|{{#ifeq:{{{required terrain|}}}||Cannot be built on:<br>{{{disallowed terrain}}}|Can only be built on:<br>{{{required terrain}}}}} | |colspan=3|{{#ifeq:{{{required terrain|}}}||Cannot be built on:<br>{{{disallowed terrain}}}|Can only be built on:<br>{{{required terrain}}}}} | ||
|- | |- | ||
!colspan=2| | !colspan="2"|Footprint | ||
|colspan=3|{{#ifeq:{{{cc F|{{{cc M|}}}}}}|{{{cc M|}}}||'''Flash''': | |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=2|Power used | ||
|colspan=3|{{#ifeq:{{{power F|{{{power M|}}}}}}|{{{power M|}}}||'''Flash''': | |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=2|Build time | ||
|colspan=3|{{#ifeq:{{{time F|{{{time M|}}}}}}|{{{time M|0}}}||'''Flash''': {{BMC time format|{{{time F|0}}}}}<br>'''Mobile''':}} {{BMC time format|{{{time M|0}}}}} | |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=2|XP for building | ||
|colspan=3|{{#ifeq:{{{xp F|{{{xp M|}}}}}}|{{{xp M|}}}||'''Flash''': | |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}}}}}}} | ||
|} | |} | ||
|}{{#cargo_store:_table=bmc_buildings | |}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bmc_buildings | ||
|id={{{id|}}} | |id={{{id|}}} | ||
|category_order={{{order|}}} | |category_order={{{order|}}} | ||
| Line 76: | Line 81: | ||
|image={{#if:{{{image M|}}}|{{{image M|}}}|{{{image F|}}}}} | |image={{#if:{{{image M|}}}|{{{image M|}}}|{{{image F|}}}}} | ||
|keywords=BMC {{{name M|}}} | |keywords=BMC {{{name M|}}} | ||
}}</includeonly><noinclude | }}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_buildings | ||
|id=String | |id=String | ||
|category_order=Integer | |category_order=Integer | ||
| Line 111: | Line 115: | ||
|xp_F =Integer | |xp_F =Integer | ||
|xp_M =Integer | |xp_M =Integer | ||
}} | }}{{/doc}}</noinclude> | ||