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
wgg>Cadaei
added storage property
wgg>Cadaei
added production time
Line 3: Line 3:
{{infobox data row|Building costs|{{{buildCosts|}}}}}
{{infobox data row|Building costs|{{{buildCosts|}}}}}
{{infobox data row|Storage|{{{storage|}}}}}
{{infobox data row|Storage|{{{storage|}}}}}
{{infobox data row|Production time|{{{productionTime|}}}}}
{{infobox data row|Max workers|{{{maxWorkers|}}}}}
{{infobox data row|Max workers|{{{maxWorkers|}}}}}
{{infobox data row|Amount to harvest|{{{amountToHarvest|}}}}}
{{infobox data row|Amount to harvest|{{{amountToHarvest|}}}}}
Line 23: Line 24:
| maxWorkers = 5
| maxWorkers = 5
| storage = 6
| storage = 6
}}
}}</pre>
</pre>
{{infobox building
{{infobox building
| name = Quarry
| name = Quarry
Line 35: Line 35:
| storage = 6
| storage = 6
}}
}}
<pre>
{{infobox building
| name = 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}}
}}</pre>
{{infobox building
{{infobox building
| name = Quarry
| name = Bakery
| image = Quarry.png
| image = Bakery.png
| size = large
| size = large
| buildCosts = {{ItemLink|Wood|quantity=3}}
| buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}}
| maxWorkers = 5
| maxWorkers = 3
| productionTime = 5 s
| storage = {{ItemLink|Flour|quantity=5}}<br/>{{ItemLink|Water|quantity=5}}<br/>{{ItemLink|Bread|quantity=5}}
}}
}}
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 18:20, 24 July 2023

This is an infobox template for buildings. Use it on building pages, e.g. like this

{{infobox building
| name = Quarry
| image = Quarry.png
| size = large
| buildCosts = {{ItemLink|Wood|quantity=3}}
| upgrade = Mason
| upgradeCosts = {{ItemLink|Ingot|quantity=4}}
| maxWorkers = 5
| storage = 6
}}

Template:Infobox header Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox section header Template:Infobox data row Template:Infobox data row |}

{{infobox building
| name = 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}}
}}

Template:Infobox header Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row

|}