Template:FactionBuilding/base: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div style="width:350px;margin-right:15px;"> | <div style="width:350px;margin-right:15px;"> | ||
| Line 7: | Line 6: | ||
| 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='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;' | |-style='background-color:#156E7E;border-bottom: 1px solid #BCB096;' | ||
|colspan=2; style="padding:4px;color:white;"|Requirements: {{#if:{{{prereqs}}}| {{#cargo_query: | |colspan=2; style="padding:4px;color:white;"|Requirements: {{#if: {{{prereqs}}}| {{#cargo_query: | ||
tables = Building=B, | tables = Building=B, | ||
Translation=building_t | Translation=building_t | ||
|join on = | |join on = | ||
building_t.target_id = B.id | building_t.target_id = B.id | ||
|where = B.faction = ' | |where = B.faction = 'dungeon' | ||
AND building_t.language = 'en' | AND building_t.language = 'en' | ||
AND B.id = '{{{prereqs}}}' | AND B.id = '{{{prereqs}}}' | ||
| Line 20: | Line 19: | ||
|format = template | |format = template | ||
|template = PrereqFetcher | |template = PrereqFetcher | ||
|named args = yes | |named args = yes}} |None.}} | ||
}}|None.}} | |-style='text-align:center;' | ||
|-style='text-align:center;' | |||
|style="border-right:1px solid #BCB096;padding:4px 0px 4px 0px;"|Cost | |style="border-right:1px solid #BCB096;padding:4px 0px 4px 0px;"|Cost | ||
|style="padding:4px 0px 4px 0px;width:350px;"|Effect | |style="padding:4px 0px 4px 0px;width:350px;"|Effect | ||
| Line 28: | Line 26: | ||
| 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;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> | |style="padding:10px;"|<span style="color: white;">{{{description|}}}</span> | ||
{{#if: {{{note}}}|<b>Note:</b> <i>{{{note}}}</i>}} | {{#if: {{{note|}}}|<b>Note:</b> <i>{{{note}}}</i> | }} | ||
|- | |- | ||
|} | |} | ||
| Line 52: | Line 50: | ||
}} | }} | ||
{{FactionBuilding | <!-- {{FactionBuilding | ||
|icon=g_build_tavern | |icon=g_build_tavern | ||
|name=Tavern | |name=Tavern | ||
| Line 66: | Line 64: | ||
|description=Produces 2000 Gold daily. | |description=Produces 2000 Gold daily. | ||
|note=Something random test test test | |note=Something random test test test | ||
}} | }} --> | ||
</noinclude> | </noinclude> | ||


