Template:BMC building info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
|<tabs>
|<tabs>
{{#if:{{{name M|}}}|<tab name="Mobile">
{{#if:{{{name M|}}}|<tab name="Mobile">
{|class="info-sub main centered-cells"
{|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|}}}]]}}
|-
|-
Line 11: Line 11:
</tab>}}
</tab>}}
{{#if:{{{name F|}}}|<tab name="Flash">
{{#if:{{{name F|}}}|<tab name="Flash">
{|class="info-sub main centered-cells"
{|class="subtable 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 18: Line 18:
</tab>}}
</tab>}}
</tabs>
</tabs>
{|class="info-sub"
{|class="subtable"
!colspan=2|Prerequisites
!colspan=2|Prerequisites
|colspan=3|{{#if:{{#ifexpr:{{{level F|1}}} > 1|a}}{{#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}}|
Line 44: Line 44:
|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}}}}}}}
|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 78: Line 78:
|xp_F  ={{{xp F|}}}
|xp_F  ={{{xp F|}}}
|xp_M  ={{{xp M|}}}
|xp_M  ={{{xp M|}}}
}}[[Category:{{#ifeq:{{{category}}}|Resource||{{{category}}}}} Buildings]]{{#seo:
}}[[Category:{{{category}}} Buildings]]{{#seo:
|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>{{/doc}}
}}}}</includeonly><noinclude>{{#cargo_declare:_table=bmc_buildings
<div>{{#cargo_declare:_table=bmc_buildings
|id=String
|id=String
|category_order=Integer
|category_order=Integer
Line 116: Line 115:
|xp_F  =Integer
|xp_F  =Integer
|xp_M  =Integer
|xp_M  =Integer
}}</div></noinclude>
}}{{/doc}}</noinclude>