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
added parameter for race
wgg>Cadaei
adjusted to prefix format of data row
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 | 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]]}}
{{infobox data row | Damage|{{{dmg|}}} | &nbsp;[[File:Damage.png|16x16px|link=Damage]]}}
{{infobox data row | Damage|{{{dmg|}}} || &nbsp;[[File:Damage.png|16x16px|link=Damage]]}}
{{infobox data row | Recruiting|{{{recruiting|}}}}}
{{infobox data row | Recruiting|{{{recruiting|}}}}}
{{infobox data row | Costs|{{{costs|}}}}}
{{infobox data row | Costs|{{{costs|}}}}}
Line 15: Line 15:
| name = Fighter
| name = Fighter
| image = Fighter.png
| image = Fighter.png
| race = [[Human]]
| race = Human
| hp = 8
| hp = 8
| shield = 16
| shield = 16
Line 27: Line 27:
| name = Fighter
| name = Fighter
| image = Fighter.png
| image = Fighter.png
| race = [[Human]]
| race = Human
| hp = 8
| hp = 8
| shield = 16
| shield = 16

Revision as of 09:02, 1 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}}
}}

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