Template:Infobox building: Difference between revisions
Appearance
DTX Studios (talk | contribs) m Protected "Template:Infobox building": Kept in step with the game's data by the maintainers ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
DTX Studios (talk | contribs) Infoboxes: an empty row leaves no blank line (blank lines became paragraphs inside the previous cell) |
||
| Line 55: | Line 55: | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude><includeonly>{| class="infobox" style="float:right; clear:right; width:22em; margin:0 0 1em 1em; border:1px solid #a2a9b1; background:#f8f9fa; font-size:90%; line-height:1.5em;" | </noinclude><includeonly>{| class="infobox" style="float:right; clear:right; width:22em; margin:0 0 1em 1em; border:1px solid #a2a9b1; background:#f8f9fa; font-size:90%; line-height:1.5em;" | ||
|+ style="font-size:125%; font-weight:bold; padding:0.3em;" | {{{name|{{PAGENAME}}}}} | |+ style="font-size:125%; font-weight:bold; padding:0.3em;" | {{{name|{{PAGENAME}}}}}{{#if:{{{image|}}}|<nowiki/> | ||
{{#if:{{{image|}}}| | |||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|250px]]{{#if:{{{caption|}}}|<br /><small>{{{caption}}}</small>}} | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|250px]]{{#if:{{{caption|}}}|<br /><small>{{{caption}}}</small>}}}} | ||
}} | |||
|- | |- | ||
! style="text-align:left;" | Type | ! style="text-align:left;" | Type | ||
| {{{type|}}} | | {{{type|}}}{{#if:{{{hp|}}}|<nowiki/> | ||
{{#if:{{{hp|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Hit points | ! style="text-align:left;" {{!}} Hit points | ||
{{!}} {{{hp}}} | {{!}} {{{hp}}}}} | ||
}} | |||
|- | |- | ||
! colspan="2" style="text-align:center; background:#eaecf0;" | Cost | ! colspan="2" style="text-align:center; background:#eaecf0;" | Cost{{#if:{{{wood|}}}|<nowiki/> | ||
{{#if:{{{wood|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Wood | ! style="text-align:left;" {{!}} Wood | ||
{{!}} {{{wood}}} | {{!}} {{{wood}}}}}{{#if:{{{stone|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{stone|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Stone | ! style="text-align:left;" {{!}} Stone | ||
{{!}} {{{stone}}} | {{!}} {{{stone}}}}}{{#if:{{{gold|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{gold|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Gold | ! style="text-align:left;" {{!}} Gold | ||
{{!}} {{{gold}}} | {{!}} {{{gold}}}}}{{#if:{{{food|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{food|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Food | ! style="text-align:left;" {{!}} Food | ||
{{!}} {{{food}}} | {{!}} {{{food}}}}}{{#if:{{{build_time|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{build_time|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Build time | ! style="text-align:left;" {{!}} Build time | ||
{{!}} {{{build_time}}} s | {{!}} {{{build_time}}} s}}{{#if:{{{population|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{population|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Population | ! style="text-align:left;" {{!}} Population | ||
{{!}} +{{{population}}} | {{!}} +{{{population}}}}}{{#if:{{{accepts|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{accepts|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Drop-off for | ! style="text-align:left;" {{!}} Drop-off for | ||
{{!}} {{{accepts}}} | {{!}} {{{accepts}}}}}{{#if:{{{trains|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{trains|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Trains | ! style="text-align:left;" {{!}} Trains | ||
{{!}} {{{trains}}} | {{!}} {{{trains}}}}}{{#if:{{{special|}}}|<nowiki/> | ||
}} | |||
{{#if:{{{special|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align:left;" {{!}} Special | ! style="text-align:left;" {{!}} Special | ||
{{!}} {{{special}}} | {{!}} {{{special}}}}} | ||
}} | |||
|- | |- | ||
! style="text-align:left;" | Status | ! style="text-align:left;" | Status | ||
| {{{status|In the game}}} | | {{{status|In the game}}} | ||
|}</includeonly> | |}</includeonly> | ||
Latest revision as of 21:18, 13 October 2026
This template shows the standard information box for a building in Dawn of Embers.
All numbers come from the game's balance data (see How to contribute). Leave a parameter empty when it does not apply; empty rows are hidden.
Usage
{{Infobox building
| name = Town Hall
| image = Icon_TownHall.png
| caption =
| type = Economy
| hp = 600
| wood = 275
| stone = 100
| gold =
| food =
| build_time = 90
| population = 30
| accepts = Wood, Gold, Stone, Food (berries, game)
| trains = [[Villager]]
| special =
| status = In the game
}}
Parameters
| Parameter | Meaning |
|---|---|
name |
Display name shown in the game. Defaults to the page name. |
image |
Image file name, without the File: prefix.
|
caption |
Optional caption under the image. |
type |
Economy, Military, Defensive or Unique (the game's building categories). |
hp |
Hit points of the finished building. |
wood, stone, gold, food |
Construction cost in each resource. Leave empty for 0. |
build_time |
Construction time in seconds (the base value, before modifiers). |
population |
Population capacity the building adds once finished. |
accepts |
Resources villagers (or ships) may drop off here. |
trains |
Units the building trains. |
special |
Anything else: placement rules, attacks, limits. |
status |
"In the game" or "Planned". Defaults to "In the game". |