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
add autocat to tower units
wgg>Cadaei
} fix
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:Units placeable in towers]]}}|{{{onTower|}}}}}}}<!--
-->{{infobox data row | Placeable in tower | {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable in towers]]}}|{{{onTower|}}}}}}}<!--
-->{{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:55, 25 October 2023

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

{{infobox unit
| 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 "Units". View table.