Template:FactionBuilding: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#cargo_query: | |||
tables = Building=B, | |||
Translation=building_t | |||
|join on = | |||
building_t.target_id = B.id | |||
|where = B.faction = 'unfrozen' | |||
AND building_t.language = 'en' | |||
AND B.id = 'unfrozen_Build_Artifact_Market_L1' | |||
|fields = B.id = id, | |||
building_t.name = name, | |||
building_t.description = description, | |||
B.icon = icon, | |||
B.prereqs__full = prereqs, | |||
B.gold_cost = gold, | |||
B.wood_cost = wood, | |||
B.ore_cost = ore, | |||
B.crystals_cost = crystals, | |||
B.gemstones_cost = gems, | |||
B.mercury_cost = mercury, | |||
B.dust_cost = dust, | |||
B.graal_cost = graal | |||
|format = template | |||
|template = FactionBuilding/base | |||
|named args = yes | |||
}} | |||
<!-- | |||
<div style="width:350px;margin-right:15px;"> | <div style="width:350px;margin-right:15px;"> | ||
{|class=infobox style="border-collapse: collapse; border: 1px solid #BCB096;" | {|class=infobox style="border-collapse: collapse; border: 1px solid #BCB096;" | ||
| Line 17: | Line 47: | ||
|} | |} | ||
</div> | </div> | ||
--> | |||
<!-- | |||
<div style="width:350px;margin-right:15px;"> | |||
{|class=infobox style="border-collapse: collapse; border: 1px solid #BCB096;" | |||
|-style='background-color:#1E3758;text-align:left;border-bottom: 1px solid #BCB096;' | |||
| style='text-align:center;object-position:center;padding:15px;width:125px;'| [[File:{{{icon|}}}.png|100px|link=]] || style='padding:10px;vertical-align:center;' |<big><b>{{{name}}}</b></big> | |||
|-style='background-color:#156E7E;border-bottom: 1px solid #BCB096;' | |||
|colspan=2; style="padding:4px;color:white;"|Requirements: {{#if:{{{requirements}}}|{{{requirements}}}|None.}} | |||
|-style='text-align:center;' | |||
|style="border-right:1px solid #BCB096;padding:4px 0px 4px 0px;"|Cost | |||
|style="padding:4px 0px 4px 0px;width:350px;"|Effect | |||
|-style="border-bottom: 1px solid #BCB096;height:auto;vertical-align:top;" | |||
| style="padding:10px;color:white;text-align:center;border-right:1px solid #BCB096;"|{{#if: {{{gold|}}}|<span style="white-space:nowrap;color:white;">{{{gold|}}} {{gold}}<br></span>}}{{#if: {{{wood|}}}|<span style="white-space:nowrap;color:white;">{{{wood|}}} {{wood}}<br></span>}}{{#if: {{{ore|}}}|<span style="white-space:nowrap;color:white;">{{{ore|}}} {{ore}}<br></span>}}{{#if: {{{gems|}}}|<span style="white-space:nowrap;color:white;">{{{gems|}}} {{gems}}<br></span>}}{{#if: {{{crystals|}}}|<span style="white-space:nowrap;color:white;">{{{crystals|}}} {{crystals}}<br></span>}}{{#if: {{{mercury|}}}|<span style="white-space:nowrap;color:white;">{{{mercury|}}} {{mercury}}<br></span>}}{{#if: {{{dust|}}}|<span style="white-space:nowrap;color:white;">{{{dust|}}} {{dust}}<br></span>}}{{#if: {{{grail|}}}|<span style="white-space:nowrap;color:white;">{{{grail|}}} {{graal}}}}</span> | |||
|style="padding:10px;"|<span style="color: white;">{{{description|}}}</span> | |||
{{#if: {{{note}}}|<b>Note:</b> <i>{{{note}}}</i>}} | |||
|- | |||
|} | |||
</div> --> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||


