Template:BMC building info: Difference between revisions

mNo edit summary
No edit summary
Line 3: Line 3:
|-
|-
|<tabs>
|<tabs>
<tab name="Mobile">
{{#if:{{{name M|}}}|<tab name="Mobile">
{|class="info-sub main centered-cells"
{|class="info-sub 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|}}}]]}}
Line 9: Line 9:
|{{{description M}}}
|{{{description M}}}
|}
|}
</tab>
</tab>}}
{{#if:{{{name F|}}}|
{{#if:{{{name F|}}}|<tab name="Flash">
<tab name="Flash">
{|class="info-sub main centered-cells"
{|class="info-sub main centered-cells"
|{{#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 28: Line 27:
|-
|-
!colspan="2"|Footprint
!colspan="2"|Footprint
|colspan="3"|{{{sub footprint x|}}}×{{{sub footprint y|}}} ({{{tile footprint x|}}}×{{{tile footprint y|}}} [[tile]]s)
|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
{{#if:{{{levels per quota|}}}|!colspan="2"{{!}}Quota
Line 34: Line 33:
|-
|-
!colspan=2|Build cost
!colspan=2|Build cost
|colspan=3|{{#ifeq:{{{cc F|{{{cc M|}}}}}}|{{{cc M|}}}||'''Flash''': [[File:BMCF city cash icon.svg|x20px|link=City Cash]] {{formatnum:{{{cc F|}}}}}<br>'''Mobile''':}} [[File:BMCM ui_cash_icon.png|x20px|link=City Cash|City Cash]] {{formatnum:{{{cc M|0}}}}}
|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''': [[File:BMCF power icon.svg|x20px|link=Power (BMC)|Power]] {{formatnum:{{{power F|}}}}}<br>'''Mobile''':}} [[File:BMCM ui power icon.png|x20px|link=Power (BMC)|Power]] {{formatnum:{{{power M|0}}}}}
|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 F|{{{time M|}}}}}}|{{{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''': [[File:BMCF xp icon.svg|x20px|link=Experience|Experience]] {{formatnum:{{{xp F|}}}}}<br>'''Mobile''':}} [[File:BMCM ui xp icon.png|x20px|link=Experience|Experience]] {{formatnum:{{{xp M|0}}}}}
|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
|}{{#cargo_store:_table=bmc_buildings