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
m 22 revisions imported
converted to pi
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly><infobox>
|image={{#if:{{{image|}}}|[[File:{{{image}}}{{!}}128px]]}}
  <title source="title">
|sections = general, upgradeBuilding
    <default>{{PAGENAME}}</default>
 
  </title>
|general_nolabel = yes
  <image source="image" />
|general = kingdom, size, buildCosts, storage, productionTime, gatheringTime, maxWorkers, amountToHarvest
  <data source="caption"/>
|kingdom_label = Kingdom
  <data source="kingdom">
|kingdom = {{kingdomDisplay|{{{kingdom|}}}|1}}
    <label>Kingdom</label>
|size_label = Building size
    <format>{{kingdomDisplay|{{{kingdom|}}}|1}}</format>
|buildCosts_label = Building costs
  </data>
|storage_label = Storage
  <data source="size">
|productionTime_label = Production Time
    <label>Building size</label>
|gatheringTime_label = Gathering Time
  </data>
|maxWorkers_label = Max [[worker]]s
  <data source="buildCosts">
|amountToHarvest_label = Amount to harvest
    <label>Building costs</label>
 
  </data>
|upgradeBuilding_label = Upgrade
  <data source="storage">
|upgradeBuilding = upgradeImage, upgrade, upgradeCosts
    <label>Storage</label>
|upgradeImage = {{#if:{{{upgradeImage|}}}|[[File:{{{upgradeImage}}}{{!}}128px|center]]}}
  </data>
|upgradeImage_nolabel = yes
  <data source="productionTime">
|upgrade_label = Upgrade
    <label>Production Time</label>
|upgradeCosts_label = Upgrade costs
  </data>
}}
  <data source="gatheringTime">
    <label>Gathering Time</label>
  </data>
  <data source="maxWorkers">
    <label>Max [[worker]]s</label>
  </data>
  <data source="amountToHarvest">
    <label>Amount to harvest</label>
  </data>
  <group>
    <header>Upgrade</header>
    <image source="upgradeImage" />
    <data source="upgrade">
      <label>Upgrade</label>
    </data>
    <data source="upgradeCosts">
      <label>Upgrade costs</label>
    </data>
  </group>
</infobox>
[[Category:Buildings]]</includeonly><noinclude>
[[Category:Buildings]]</includeonly><noinclude>
This is an infobox template for buildings.
This is an infobox template for buildings.

Revision as of 23:20, 27 October 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}}
}}