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
added onWall, OnBench, isSiege |
No edit summary |
||
| Line 25: | Line 25: | ||
<label>Placeable on tower</label> | <label>Placeable on tower</label> | ||
<format>{{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable in towers]]}}|{{{onTower|no}}}[[Category:Units not placeable in towers]]}}</format> | <format>{{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable in towers]]}}|{{{onTower|no}}}[[Category:Units not placeable in towers]]}}</format> | ||
</data> | |||
<data source="onWall"> | <data source="onWall"> | ||
<label>Placeable on wall</label> | <label>Placeable on wall</label> | ||
<format>{{#ifeq:{{{onWall|}}}|yes|[[File:Wall.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable on walls]]}}|{{{onWall|no}}}[[Category:Units not placeable on walls]]}}</format> | <format>{{#ifeq:{{{onWall|}}}|yes|[[File:Wall.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Units placeable on walls]]}}|{{{onWall|no}}}[[Category:Units not placeable on walls]]}}</format> | ||
</data> | |||
<data source="onBench"> | <data source="onBench"> | ||
<label>Active Ability from bench</label> | <label>Active Ability from bench</label> | ||
| Line 101: | Line 103: | ||
}} | }} | ||
</pre> | </pre> | ||
{{infobox unit | |||
| title = Swordsman | |||
| image = Swordsman.png | |||
| caption = Point and stab | |||
| kingdom = Human | |||
| recruiting = Castle on the right | |||
| costs = {{ItemLink|Stone|quantity=4}} | |||
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}} | |||
| onTower = yes | |||
| damageType = Physical | |||
| element = None | |||
| movement = Infantry | |||
| attackStyle = Melee | |||
| role = Tank | |||
}} | |||
{{#cargo_declare:_table=Units | {{#cargo_declare:_table=Units | ||
|name=String | |name=String | ||
Revision as of 21:45, 11 February 2026
This is an infobox template for units. Use it on unit pages, e.g. like this
{{infobox unit
| title = Swordsman
| image = Swordsman.png
| caption = Point and stab
| kingdom = Human
| recruiting = Castle on the right
| costs = {{ItemLink|Stone|quantity=4}}
| upgradeCosts = {{IconLinkSequence|Stone|8|16|32}}
| onTower = yes
| damageType = Physical
| element = None
| movement = Infantry
| attackStyle = Melee
| role = Tank
}}
This template defines the table "Units". View table.


