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
add output for buildings
add data source
Line 32: Line 32:
   <data source="amountToHarvest">
   <data source="amountToHarvest">
     <label>Amount to harvest</label>
     <label>Amount to harvest</label>
  </data>
  <data source="output">
    <label>Output</label>
   </data>
   </data>
   <group>
   <group>
Line 49: Line 52:
|kingdom={{{kingdom|}}}
|kingdom={{{kingdom|}}}
|sizeLarge={{#ifeq:{{#lc:{{{size|}}}}}|large|1|0}}
|sizeLarge={{#ifeq:{{#lc:{{{size|}}}}}|large|1|0}}
|output={{{output|}}}
}}}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
This is an infobox template for buildings.
This is an infobox template for buildings.

Revision as of 21:04, 11 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
| 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}}
}}

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