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
only show combat section if at least one property exists
wgg>Cadaei
added cargo
Line 58: Line 58:
-->}}<!--
-->}}<!--
-->{{infobox footer}}
-->{{infobox footer}}
[[Category:Units]]</includeonly><noinclude>
[[Category:Units]]
{{#cargo_store:_table=Units}}</includeonly><noinclude>
This is an infobox template for [[units]].
This is an infobox template for [[units]].
Use it on unit pages, e.g. like this
Use it on unit pages, e.g. like this
Line 76: Line 77:
}}
}}
</pre>
</pre>
{{infobox unit
{{#cargo_declare:_table=Units
| name = Fighter
|name=String
| image = Fighter.png
|unlocking=String
| kingdom = Human
|kingdom=String
| recruiting = Castle on the right
|damageType=String
| costs = {{ItemLink|Stone|quantity=4}}
|element=String
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
|movement=String
| damageType = Physical
|attackStyle=String
| element = None
|role=String
| movement = Infantry
| attackStyle = Melee
| role = Tank
}}
}}
[[Category:infobox templates]]</noinclude>
[[Category:infobox templates]]</noinclude>

Revision as of 09:39, 15 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
}}

This template defines the table "Units". View table.