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
combined stat data rows
wgg>Cadaei
added attack style and role
Line 6: Line 6:
{{infobox data row | Costs|{{{costs|}}}}}
{{infobox data row | Costs|{{{costs|}}}}}
{{infobox data row | Upgrade Costs|{{{upgradeCosts|}}}}}
{{infobox data row | Upgrade Costs|{{{upgradeCosts|}}}}}
{{infobox data row | Attack Style |{{{attackStyle|}}}}}
{{infobox data row | Role |{{{role|}}}}}
|}
|}
[[Category:Units]]</includeonly><noinclude>
[[Category:Units]]</includeonly><noinclude>
Line 21: Line 23:
| costs = {{ItemLink|Stone|quantity=4}}
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| attackStyle = Melee
| role = Tank
}}
}}
</pre>
</pre>
Line 33: Line 37:
| costs = {{ItemLink|Stone|quantity=4}}
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| attackStyle = Melee
| role = Tank
}}
}}
[[Category:infobox templates]]</noinclude>
[[Category:infobox templates]]</noinclude>

Revision as of 09:28, 9 July 2023

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

{{infobox unit
| name = Fighter
| image = Fighter.png
| race = Human
| hp = 8
| shield = 16
| dmg = 3
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| attackStyle = Melee
| role = Tank
}}

Template:Infobox header Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row Template:Infobox data row |}