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>NTorak
No edit summary
wgg>Cadaei
use data row template
Line 3: Line 3:
|-
|-
| colspan=2 style="text-align:center" | [[File:{{{image|{{PAGENAME}}.png}}}|128px]]
| colspan=2 style="text-align:center" | [[File:{{{image|{{PAGENAME}}.png}}}|128px]]
|-
{{infobox data row|Building slot|{{{size|}}}}}
! Size
{{infobox data row|Building costs|{{{buildCosts|}}}}}
| {{{size|}}}
{{infobox data row|Upgrade Costs|{{{upgradeCosts|}}}}}
|-
{{infobox data row|Max workers|{{{maxWorkers|}}}}}
! Build Costs
| {{{buildCosts|}}}
{{#if:{{{upgrade|}}}|
{{!}}-
! Upgrade
{{!}} {{{upgrade}}}
{{!}}-
! Upgrade Costs
{{!}} {{{upgradeCosts|}}}|}}
{{!}}-
! Max. workers
{{!}} {{{maxWorkers|}}}
{{!}}-
|}
|}
 
[[Category:Buildings]]</includeonly><noinclude>
[[Category:Buildings]]
</includeonly><noinclude>
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
Line 53: Line 38:
| maxWorkers = 5
| maxWorkers = 5
}}
}}
</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 12:07, 24 June 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 = Ingots
| maxWorkers = 5
}}
Quarry

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

Quarry

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