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 unit->hero |
wgg>Cadaei cat for non tower heroes |
||
| Line 7: | Line 7: | ||
-->{{#if:{{{damageType|}}}{{{element|}}}{{{movement|}}}{{{attackStyle|}}}{{{role|}}}|<!-- | -->{{#if:{{{damageType|}}}{{{element|}}}{{{movement|}}}{{{attackStyle|}}}{{{role|}}}|<!-- | ||
-->{{infobox section header|Combat}}<!-- | -->{{infobox section header|Combat}}<!-- | ||
-->{{infobox data row | Placeable in tower | {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Heroes placeable in towers]]}}|{{{onTower|}}}}}}}<!-- | -->{{infobox data row | Placeable in tower | {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Heroes placeable in towers]]}}|{{{onTower|}}}[[Category:Heroes not placeable in towers]]}}}}<!-- | ||
-->{{infobox data row | Damage Type | {{damageTypeDisplay|{{{damageType|}}}|1}}}}<!-- | -->{{infobox data row | Damage Type | {{damageTypeDisplay|{{{damageType|}}}|1}}}}<!-- | ||
-->{{infobox data row | Element | {{elementDisplay|{{{element|}}}|1}}}}<!-- | -->{{infobox data row | Element | {{elementDisplay|{{{element|}}}|1}}}}<!-- | ||
Revision as of 20:51, 29 November 2023
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.


