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
combat section header
wgg>Cadaei
only show combat section if at least one property exists
Line 16: Line 16:
-->{{infobox data row | Costs|{{{costs|}}}}}<!--
-->{{infobox data row | Costs|{{{costs|}}}}}<!--
-->{{infobox data row | Upgrade Costs|{{{upgradeCosts|}}}}}<!--
-->{{infobox data row | Upgrade Costs|{{{upgradeCosts|}}}}}<!--
-->{{#if:{{{damageType|}}}{{{element|}}}{{{movement|}}}{{{attackStyle|}}}{{{role|}}}|<!--
-->{{infobox section header|Combat}}<!--
-->{{infobox section header|Combat}}<!--
-->{{#if:{{{damageType|}}}|{{#switch: {{{damageType}}}
-->{{#if:{{{damageType|}}}|{{#switch: {{{damageType}}}
Line 55: Line 56:
       }}<!--
       }}<!--
     -->{{infobox data row | Role | {{#var:role}}}}}}<!--
     -->{{infobox data row | Role | {{#var:role}}}}}}<!--
-->}}<!--
-->{{infobox footer}}
-->{{infobox footer}}
[[Category:Units]]</includeonly><noinclude>
[[Category:Units]]</includeonly><noinclude>

Revision as of 12:38, 14 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}}
| damageType = Physical
| element = None
| movement = Infantry
| attackStyle = Melee
| role = Tank
}}

Template:Infobox headerTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox section headerTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox footer