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>Cadaei added isGuardian cargo table field |
wgg>Cadaei guardian->hero->unit |
||
| Line 15: | Line 15: | ||
|combat = onTower, damageType, element, movement, attackStyle, role, resistance, weakness | |combat = onTower, damageType, element, movement, attackStyle, role, resistance, weakness | ||
|onTower_label = Placeable on tower | |onTower_label = Placeable on tower | ||
|onTower = {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category: | |onTower = {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable in towers]]}}|{{{onTower|no}}}[[Category:Units not placeable in towers]]}} | ||
|damageType_label = Damage Type | |damageType_label = Damage Type | ||
|damageType = {{damageTypeDisplay|{{{damageType|}}}|1}} | |damageType = {{damageTypeDisplay|{{{damageType|}}}|1}} | ||
| Line 31: | Line 31: | ||
|weakness_label = Weakness | |weakness_label = Weakness | ||
}} | }} | ||
[[Category: | [[Category:Units]] | ||
{{#if:{{#var:noCargo}}||{{#cargo_store:_table= | {{#if:{{#var:noCargo}}||{{#cargo_store:_table=Units | ||
|name = {{{title|{{PAGENAME}}}}} | |name = {{{title|{{PAGENAME}}}}} | ||
|onTower = {{#ifeq:{{{onTower|}}}|yes|1|0}} | |onTower = {{#ifeq:{{{onTower|}}}|yes|1|0}} | ||
| Line 38: | Line 38: | ||
|unlocking = {{{unlocking|}}} | |unlocking = {{{unlocking|}}} | ||
|kingdom = {{{kingdom|}}} | |kingdom = {{{kingdom|}}} | ||
| | |isHero = {{#if:{{{isHero|}}}|1|0}} | ||
|damageType = {{{damageType|}}} | |damageType = {{{damageType|}}} | ||
|element = {{{element|}}} | |element = {{{element|}}} | ||
| Line 47: | Line 47: | ||
|benefitsFromRelics = {{{benefitsFromRelics|}}} | |benefitsFromRelics = {{{benefitsFromRelics|}}} | ||
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
This is an infobox template for [[ | This is an infobox template for [[units]]. | ||
Use it on | Use it on unit pages, e.g. like this | ||
<pre> | <pre> | ||
{{infobox | {{infobox unit | ||
| title = Swordsman | | title = Swordsman | ||
| image = Swordsman.png | | image = Swordsman.png | ||
| Line 66: | Line 66: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#cargo_declare:_table= | {{#cargo_declare:_table=Units | ||
|name=String | |name=String | ||
|unlocking=String | |unlocking=String | ||
|kingdom=String | |kingdom=String | ||
| | |isHero=Boolean | ||
|damageType=String | |damageType=String | ||
|element=String | |element=String | ||
Revision as of 19:45, 20 October 2025
This is an infobox template for units. Use it on unit pages, e.g. like this
{{infobox unit
| title = Swordsman
| image = Swordsman.png
| caption = ''Point and stab''
| 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 "Units". View table.


