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 max carriers to support undead buildings which use carriers instead of workers
added cargo table
Line 43: Line 43:
     </data>
     </data>
   </group>
   </group>
</infobox>
</infobox><!--
[[Category:Buildings]]</includeonly><noinclude>
-->{{#if:{{#var:noAutoCategories}}||[[Category:Buildings]]}}<!--
-->{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Buildings
|name={{{title|{{#titleparts:{{PAGENAME}}<!-- -->}}}}}
|kingdom={{{kingdom|}}}
|sizeLarge={{#ifeq:{{#lc:{{{size|}}}}}|large|1|0}}
}}}}</includeonly><noinclude>
This is an infobox template for buildings.
This is an infobox template for buildings.
Use it on building pages, e.g. like this
Use it on building pages, e.g. like this
Line 66: Line 71:
| storage = {{ItemLink|Flour|quantity=5}}<br/>{{ItemLink|Water|quantity=5}}<br/>{{ItemLink|Bread|quantity=5}}
| storage = {{ItemLink|Flour|quantity=5}}<br/>{{ItemLink|Water|quantity=5}}<br/>{{ItemLink|Bread|quantity=5}}
}}
}}
{{#cargo_declare:_table=Buildings
|name=String
|kingdom=String
|sizeLarge=Boolean
}}
[[Category:Cargo storing templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 19:12, 7 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}}
}}

</noinclude> This template defines the table "Buildings". View table.