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 unit: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>RheingoldRiver
No edit summary
wgg>Cadaei
removed redundant whitespace
Line 19: Line 19:
[[Category:Heroes]]
[[Category:Heroes]]
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Heroes
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Heroes
|name={{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
|onTower={{#ifeq:{{{onTower|}}}|yes|1|0}}
|onTower = {{#ifeq:{{{onTower|}}}|yes|1|0}}
|unreleased={{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}}
|unreleased = {{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}}
 
|unlocking = {{{unlocking|}}}
|   unlocking={{{   unlocking|}}}
|kingdom = {{{kingdom|}}}
|   kingdom={{{   kingdom|}}}
|damageType = {{{damageType|}}}
|   damageType={{{   damageType|}}}
|element = {{{element|}}}
|   element={{{   element|}}}
|movement = {{{movement|}}}
|   movement={{{   movement|}}}
|attackStyle = {{{attackStyle|}}}
|   attackStyle={{{   attackStyle|}}}
|role = {{{role|}}}
|   role={{{   role|}}}
|requiredForRelics = {{{requiredForRelics|}}}
|   requiredForRelics={{{   requiredForRelics|}}}
|benefitsFromRelics = {{{benefitsFromRelics|}}}
|   benefitsFromRelics={{{   benefitsFromRelics|}}}
 
 
}}}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
This is an infobox template for [[heroes]].
This is an infobox template for [[heroes]].

Revision as of 20:49, 3 December 2024

This is an infobox template for heroes. Use it on hero pages, e.g. like this

{{infobox hero
| name = Fighter
| image = Fighter.png
| kingdom = Human
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| onTower = yes
| damageType = Physical
| element = None
| movement = Infantry
| attackStyle = Melee
| role = Tank
}}

This template defines the table "Heroes". This table has not been created yet.