Template:FactionBuilding/base: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 6: | 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: | |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 20: | ||
|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 | ||


