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
changed cargo output field type to list of string
changed output to itemList
Line 35: Line 35:
   <data source="output">
   <data source="output">
     <label>Output</label>
     <label>Output</label>
     <format>{{ItemLink|{{{output|}}}}}</format>
     <format>{{ItemList|{{{output|}}}}}</format>
     <default>None</default>
     <default>None</default>
   </data>
   </data>

Revision as of 22:01, 12 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}}
| output = Bread
}}

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