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
moved images to parameter suffix
wgg>Cadaei
added parameter for race
Line 1: Line 1:
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}}}
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}}}
{{infobox data row | Race | {{{race|}}}}}
{{infobox data row | Health Points|{{{hp|}}} | &nbsp;[[File:Health Points.png|16x16px|link=Health]]}}
{{infobox data row | Health Points|{{{hp|}}} | &nbsp;[[File:Health Points.png|16x16px|link=Health]]}}
{{infobox data row | Shield|{{{shield|}}} | &nbsp;[[File:Shield.png|16x16px|link=Shield]]}}
{{infobox data row | Shield|{{{shield|}}} | &nbsp;[[File:Shield.png|16x16px|link=Shield]]}}
Line 14: Line 15:
| name = Fighter
| name = Fighter
| image = Fighter.png
| image = Fighter.png
| race = [[Human]]
| hp = 8
| hp = 8
| shield = 16
| shield = 16
Line 25: Line 27:
| name = Fighter
| name = Fighter
| image = Fighter.png
| image = Fighter.png
| race = [[Human]]
| hp = 8
| hp = 8
| shield = 16
| shield = 16

Revision as of 21:22, 30 June 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}}
}}

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 |}