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 also display upgrade section if no upgrade name is given |
wgg>Cadaei upgradeImage property |
||
| Line 7: | Line 7: | ||
{{infobox data row|Max [[worker]]s|{{{maxWorkers|}}}}} | {{infobox data row|Max [[worker]]s|{{{maxWorkers|}}}}} | ||
{{infobox data row|Amount to harvest|{{{amountToHarvest|}}}}} | {{infobox data row|Amount to harvest|{{{amountToHarvest|}}}}} | ||
{{#if:{{{upgrade|}}}{{{upgradeCosts|}}}|{{infobox section header|Building Upgrade}} | {{#if:{{{upgrade|}}}{{{upgradeCosts|}}}{{{upgradeImage|}}}|{{infobox section header|Building Upgrade}}{{#if:{{{upgradeImage|}}}| | ||
<tr><td colspan=2 style="text-align:center">[[File:{{{upgradeImage}}}|128px]]</td></tr>}} | |||
{{infobox data row|Upgrade|{{{upgrade|}}}}} | {{infobox data row|Upgrade|{{{upgrade|}}}}} | ||
{{infobox data row|Upgrade Costs|{{{upgradeCosts|}}}}} | {{infobox data row|Upgrade Costs|{{{upgradeCosts|}}}}} | ||
| Line 15: | Line 16: | ||
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 | ||
<pre> | <pre> | ||
{{infobox building | {{infobox building | ||
Revision as of 21:56, 20 December 2023
This is an infobox template for buildings. Use it on building pages, e.g. like this
{{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 Template:Infobox data row


