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
upgradeCosts to cargo
consistent cargo naming
Line 58: Line 58:
|utility={{{utility|}}}
|utility={{{utility|}}}
|upgradeInfo={{{upgradeInfo|}}}
|upgradeInfo={{{upgradeInfo|}}}
|upgradeCosts={{{upgradeCosts|}}}
|upgradeCost={{{upgradeCosts|}}}
|output={{{output|}}}
|output={{{output|}}}
|unreleased={{#if:{{{unreleased|}}}|1|0}}
|unreleased={{#if:{{{unreleased|}}}|1|0}}
Line 70: Line 70:
|utility=Wikitext string
|utility=Wikitext string
|upgradeInfo=Wikitext string
|upgradeInfo=Wikitext string
|upgradeCosts=Wikitext string
|upgradeCost=Wikitext string
|output=List (,) of String
|output=List (,) of String
|unreleased=Boolean
|unreleased=Boolean

Revision as of 23:19, 2 December 2025

This template defines the table "Buildings". View table. This is an infobox template for buildings.

Parameters

  • title: string, e.g. Bakery
  • image: string, e.g. Bakery.png
  • caption: string, e.g. bakes bread
  • kingdom: string, e.g. Human
  • size: string, e.g. large or small
  • buildCosts:
  • maxWorkers: integer
  • productionTime: string, e.g. 5 s
  • storage: string, e.g. list of items
  • output: comma separated string, e.g. water, bread
  • utility: short text about the building
  • upgrade: string, name of the upgraded building
  • upgradeImage: string, e.g. Super bakery.png
  • upgradeCosts:
  • upgradeInfo: short text about the upgraded building
  • unreleased: boolean, 1 if unreleased
  • removed: 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}}
}}