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 consumable: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei converted to DRUID |
wgg>Cadaei don't display orbInfo if totalAtStart is undefined |
||
| Line 14: | Line 14: | ||
|amountFromTiles_label = Unlockable from [[Resource tile|tiles]] | |amountFromTiles_label = Unlockable from [[Resource tile|tiles]] | ||
|totalAtStart_label = Total | |totalAtStart_label = Total | ||
|totalAtStart = {{#iferror:{{#expr: {{{storageAtStart|}}} + {{{amountFromTiles|}}}}}}} | |totalAtStart = {{#vardefineecho: totalAtStart | {{#iferror:{{#expr: {{{storageAtStart|}}} + {{{amountFromTiles|}}}}}}}}} | ||
|orbInfo_nolabel = yes | |orbInfo_nolabel = yes | ||
|orbInfo = The total starting amount can be further increased by investing {{ItemLink|Orb}}s | |orbInfo = {{#if:{{#var:totalAtStart}}| The total starting amount can be further increased by investing {{ItemLink|Orb}}s }} | ||
|productSection_label = Product | |productSection_label = Product | ||
Revision as of 20:08, 25 September 2025
This is an infobox template for consumables. Use it on consumable pages, e.g. like this
{{infobox consumable
| title = Berry
| image = Berry.png
| source = {{ItemLink|Berry Bush}}
| xp = 1
| gatheringTime = 3 s
| craftingTime =
| naturallyAvailable = 25
| storageAtStart = 0
| amountFromTiles = 1
}}



