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 kingdom |
wgg>Cadaei converted to DRUID |
||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#invoke:Infobox|main | ||
|image={{#if:{{{image|}}}|[[File:{{{image}}}{{!}}128px]]}} | |||
|sections = general, upgradeBuilding | |||
|general = kingdom, size, buildCosts, storage, productionTime, gatheringTime, maxWorkers, amountToHarvest | |||
|general_nolabel = yes | |||
|kingdom_label = Kingdom | |||
|kingdom = {{kingdomDisplay|{{{kingdom|}}}|1}} | |||
|size_label = Building size | |||
|buildCosts_label = Building costs | |||
|storage_label = Storage | |||
|productionTime_label = Production Time | |||
|{{#if:{{{upgradeImage|}}} | | |gatheringTime_label = Gathering Time | ||
}} | |maxWorkers_label = Max [[worker]]s | ||
|amountToHarvest_label = Amount to harvest | |||
|upgradeBuilding = upgradeImage, upgrade, upgradeCosts | |||
|upgradeBuilding_label = Upgrade Building | |||
|upgradeImage = {{#if:{{{upgradeImage|}}}|[[File:{{{upgradeImage}}}{{!}}128px|center]]}} | |||
|upgradeImage_nolabel = yes | |||
|upgrade_label = Upgrade | |||
|upgradeCosts_label = Upgrade costs | |||
}} | |||
[[Category:Buildings]]</includeonly><noinclude> | [[Category:Buildings]]</includeonly><noinclude> | ||
This is an infobox template for buildings. | This is an infobox template for buildings. | ||
| Line 20: | Line 25: | ||
<pre> | <pre> | ||
{{infobox building | {{infobox building | ||
| | | title = Bakery | ||
| image = Bakery.png | | image = Bakery.png | ||
| size = large | | size = large | ||
| Line 29: | Line 34: | ||
}}</pre> | }}</pre> | ||
{{infobox building | {{infobox building | ||
| | | title = Bakery | ||
| image = Bakery.png | | image = Bakery.png | ||
| size = large | | size = large | ||
Revision as of 20:49, 12 December 2024
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}}
}}



