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 auto categorize and itemLinkize |
wgg>Cadaei race -> kingdom |
||
| Line 1: | Line 1: | ||
<includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}|info={{{info|}}}}}<!-- | <includeonly>{{infobox header|name={{{name|{{PAGENAME}}}}}|image={{{image|{{PAGENAME}}.png}}}|info={{{info|}}}}}<!-- | ||
-->{{infobox data row | | -->{{#if:{{{kingdom|}}}|{{#switch: {{{kingdom}}} | ||
| Human | |||
| Dwarven | |||
| Demon | |||
| Elven | |||
| Nature | |||
| Reptiloid | |||
| Mystic | |||
| Barbarian | |||
| Undead = [[Category:{{{kingdom}}}]]{{#vardefine:kingdom|{{ItemLink|{{{kingdom}}}}}}} | |||
| #default = {{#vardefine:kingdom|{{{kingdom}}}}} | |||
}}<!-- | |||
-->{{infobox data row | Kingdom | {{#var:kingdom}}}}}}<!-- | |||
-->{{infobox data row | Recruiting|{{{recruiting|}}}}}<!-- | -->{{infobox data row | Recruiting|{{{recruiting|}}}}}<!-- | ||
-->{{infobox data row | Costs|{{{costs|}}}}}<!-- | -->{{infobox data row | Costs|{{{costs|}}}}}<!-- | ||
| Line 50: | Line 62: | ||
| name = Fighter | | name = Fighter | ||
| image = Fighter.png | | image = Fighter.png | ||
| | | kingdom = Human | ||
| recruiting = Castle on the right | | recruiting = Castle on the right | ||
| costs = {{ItemLink|Stone|quantity=4}} | | costs = {{ItemLink|Stone|quantity=4}} | ||
| Line 56: | Line 68: | ||
| damageType = Physical | | damageType = Physical | ||
| element = None | | element = None | ||
| movement = | | movement = Infantry | ||
| attackStyle = Melee | | attackStyle = Melee | ||
| role = Tank | | role = Tank | ||
| Line 64: | Line 76: | ||
| name = Fighter | | name = Fighter | ||
| image = Fighter.png | | image = Fighter.png | ||
| | | kingdom = Human | ||
| recruiting = Castle on the right | | recruiting = Castle on the right | ||
| costs = {{ItemLink|Stone|quantity=4}} | | costs = {{ItemLink|Stone|quantity=4}} | ||
| Line 70: | Line 82: | ||
| damageType = Physical | | damageType = Physical | ||
| element = None | | element = None | ||
| movement = | | movement = Infantry | ||
| attackStyle = Melee | | attackStyle = Melee | ||
| role = Tank | | role = Tank | ||
}} | }} | ||
[[Category:infobox templates]]</noinclude> | [[Category:infobox templates]]</noinclude> | ||
Revision as of 20:18, 12 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 data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox data rowTemplate:Infobox footer


