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
added cargo fields: removed, unreleased |
updated doc with new parameters |
||
| Line 74: | Line 74: | ||
}} | }} | ||
This is an infobox template for buildings. | This is an infobox template for buildings. | ||
==Parameters== | |||
* <code>title</code>: string, e.g. Bakery | |||
* <code>image</code>: string, e.g. Bakery.png | |||
* <code>caption</code>: string, e.g. bakes bread | |||
* <code>kingdom</code>: string, e.g. Human | |||
* <code>size</code>: string, e.g. large or small | |||
* <code>buildCosts</code>: | |||
* <code>maxWorkers</code>: integer | |||
* <code>productionTime</code>: string, e.g. 5 s | |||
* <code>storage</code>: string, e.g. list of items | |||
* <code>output</code>: comma separated string, e.g. water, bread | |||
* <code>utility</code>: short text about the building | |||
* <code>upgrade</code>: string, name of the upgraded building | |||
* <code>upgradeImage</code>: string, e.g. Super bakery.png | |||
* <code>upgradeCosts</code>: | |||
* <code>upgradeInfo</code>: short text about the upgraded building | |||
* <code>unreleased</code>: boolean, 1 if unreleased | |||
* <code>removed</code>: boolean, 1 if removed | |||
Use it on building pages, e.g. like this | Use it on building pages, e.g. like this | ||
{{infobox building | {{infobox building | ||
Revision as of 21:16, 2 December 2025
This template defines the table "Buildings". View table. This is an infobox template for buildings.
Parameters
title: string, e.g. Bakeryimage: string, e.g. Bakery.pngcaption: string, e.g. bakes breadkingdom: string, e.g. Humansize: string, e.g. large or smallbuildCosts:maxWorkers: integerproductionTime: string, e.g. 5 sstorage: string, e.g. list of itemsoutput: comma separated string, e.g. water, breadutility: short text about the buildingupgrade: string, name of the upgraded buildingupgradeImage: string, e.g. Super bakery.pngupgradeCosts:upgradeInfo: short text about the upgraded buildingunreleased: boolean, 1 if unreleasedremoved: boolean, 1 if removed
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
}}
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}}
}}

