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 output to itemList |
added visibility of the other possible options |
||
| Line 58: | Line 58: | ||
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 | ||
{{infobox building | {{infobox building | ||
| title = Bakery | | title = Bakery | ||
| image = Bakery.png | | image = Bakery.png | ||
| caption = bakes bread | |||
| kingdom = Human | |||
| size = large | | size = large | ||
| buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}} | | buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}} | ||
| Line 68: | Line 69: | ||
| 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}} | ||
| output = Bread | | output = Bread | ||
}}< | }} | ||
<pre> | |||
{{infobox building | {{infobox building | ||
| title = Bakery | | title = Bakery | ||
| image = Bakery.png | | image = Bakery.png | ||
| caption = bakes bread | |||
| kingdom = Human | |||
| size = large | | size = large | ||
| buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}} | | buildCosts = {{ItemLink|Board|quantity=5}}<br/>{{ItemLink|Wheat|quantity=2}} | ||
| Line 78: | Line 82: | ||
| 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}} | ||
| output = Bread | | output = Bread | ||
}} | }}</pre> | ||
{{#cargo_declare:_table=Buildings | {{#cargo_declare:_table=Buildings | ||
|name=String | |name=String | ||
| Line 85: | Line 90: | ||
|output=List (,) of String | |output=List (,) of String | ||
}} | }} | ||
{{clear}} | |||
{{infobox building | |||
| title = Fake example building decoration | |||
| image = Decoration.png | |||
| gatheringTime = 7 s | |||
| maxCarriers = 2 | |||
| amountToHarvest = 4 | |||
| upgradeImage = Decoration2.png | |||
| upgradeCosts = {{IconLinkSequence|Ore|4|8|12|16}} | |||
}} | |||
Other options not mentioned in the template above that you could include in the template are: | |||
<pre> | |||
| gatheringTime = 7 s | |||
| maxCarriers = 2 | |||
| amountToHarvest = 4 | |||
| upgradeImage = image.png | |||
| upgradeCosts = {{IconLinkSequence|Resource|4|8|12|16}} | |||
</pre> | |||
Which would look like: | |||
<pre> | |||
{{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|Ore|4|8|12|16}} | |||
}}</pre> | |||
[[Category:Cargo storing templates]] | [[Category:Cargo storing templates]] | ||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> | ||
Revision as of 22:14, 15 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
| 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
}}
This template defines the table "Buildings". View table.
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|Ore|4|8|12|16}}
}}

