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
No edit summary
wgg>Cadaei
unreleased cargo field
Line 16: Line 16:
[[Category:Units]]
[[Category:Units]]
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Units
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Units
|name={{{name|{{PAGENAME}}}}}}}}}</includeonly><noinclude>
|name={{{name|{{PAGENAME}}}}}}}
|unreleased={{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}}
}}</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 43: Line 45:
|attackStyle=String
|attackStyle=String
|role=String
|role=String
|unreleased=Boolean
}}
}}
[[Category:infobox templates]]
[[Category:infobox templates]]
[[Category:Cargo storing templates]]</noinclude>
[[Category:Cargo storing templates]]</noinclude>

Revision as of 22:12, 18 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.