Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Infobox building: Difference between revisions

From Super Fantasy Kingdom Official Wiki
Hide output if its not set
in game name for current Ore is Gold
Line 101: Line 101:
| amountToHarvest = 4
| amountToHarvest = 4
| upgradeImage = Decoration2.png
| upgradeImage = Decoration2.png
| upgradeCosts = {{IconLinkSequence|Ore|4|8|12|16}}
| upgradeCosts = {{IconLinkSequence|Gold|4|8|12|16}}
}}
}}


Line 121: Line 121:
| amountToHarvest = 4
| amountToHarvest = 4
| upgradeImage = Decoration2.png>{{ItemLink|Bread|quantity=5}}
| upgradeImage = Decoration2.png>{{ItemLink|Bread|quantity=5}}
| upgradeCosts = {{IconLinkSequence|Ore|4|8|12|16}}
| upgradeCosts = {{IconLinkSequence|Gold|4|8|12|16}}
}}</pre>
}}</pre>


[[Category:Cargo storing templates]]
[[Category:Cargo storing templates]]
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 11:59, 28 November 2025

This is an infobox template for buildings. Use it on building pages, e.g. like this

{{infobox building
| title = Bakery
| image = Bakery.png
| caption = bakes bread
| kingdom = Human
| size = large
| buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}}
| maxWorkers = 3
| productionTime = 5 s
| storage = {{ItemLink|Flour|quantity=5}}<br/>{{ItemLink|Water|quantity=5}}<br/>{{ItemLink|Bread|quantity=5}}
| output = Bread
}}

This template defines the table "Buildings". View table.

Other options not mentioned in the template above that you could include in the template are:

| gatheringTime = 7 s
| maxCarriers = 2
| amountToHarvest = 4
| upgradeImage = image.png
| upgradeCosts = {{IconLinkSequence|Resource|4|8|12|16}}

Which would look like:

{{infobox building
| title = Fake example building decoration
| image = Decoration.png
| gatheringTime = 7 s
| maxCarriers = 2
| amountToHarvest = 4
| upgradeImage = Decoration2.png>{{ItemLink|Bread|quantity=5}}
| upgradeCosts = {{IconLinkSequence|Gold|4|8|12|16}}
}}