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
adjusted template parameter names
wgg>Cadaei
removed stats. added preferredFood
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|}}}}}
{{#if:{{{hp|}}}{{{dm|}}}{{{sh|}}}{{{cr|}}}{{{pd|}}}{{{md|}}}|
{{infobox data row | Stats | {{stats|hp={{{hp|}}}|dm={{{dm|}}}|sh={{{sh|}}}|cr={{{cr|}}}|pd={{{pd|}}}|md={{{md|}}}}} }} }}
{{infobox data row | Recruiting|{{{recruiting|}}}}}
{{infobox data row | Recruiting|{{{recruiting|}}}}}
{{infobox data row | Costs|{{{costs|}}}}}
{{infobox data row | Costs|{{{costs|}}}}}
Line 8: Line 6:
{{infobox data row | Attack Style |{{{attackStyle|}}}}}
{{infobox data row | Attack Style |{{{attackStyle|}}}}}
{{infobox data row | Role |{{{role|}}}}}
{{infobox data row | Role |{{{role|}}}}}
{{infobox data row | {{Tooltip|Preferred Food|gives 5 xp when eaten}} |{{{preferredFood|}}}}}
|}
|}
[[Category:Units]]</includeonly><noinclude>
[[Category:Units]]</includeonly><noinclude>
Line 17: Line 16:
| image = Fighter.png
| image = Fighter.png
| race = Human
| race = Human
| hp = 8
| sh = 16
| pd =
| md =
| dm = 3
| cr =
| recruiting = Castle on the right
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| costs = {{ItemLink|Stone|quantity=4}}
Line 28: Line 21:
| attackStyle = Melee
| attackStyle = Melee
| role = Tank
| role = Tank
| preferredFood = {{ItemLink|Rabbit}}
}}
}}
</pre>
</pre>
Line 34: Line 28:
| image = Fighter.png
| image = Fighter.png
| race = Human
| race = Human
| hp = 8
| sh = 16
| pd =
| md =
| dm = 3
| cr =
| recruiting = Castle on the right
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| costs = {{ItemLink|Stone|quantity=4}}
Line 45: Line 33:
| attackStyle = Melee
| attackStyle = Melee
| role = Tank
| role = Tank
| preferredFood = {{ItemLink|Rabbit}}
}}
}}
[[Category:infobox templates]]</noinclude>
[[Category:infobox templates]]</noinclude>

Revision as of 16:10, 24 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
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| attackStyle = Melee
| role = Tank
| preferredFood = {{ItemLink|Rabbit}}
}}

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