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
updated doc |
added onWall, OnBench, isSiege |
||
| 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 source="onWall"> | |||
<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> | |||
<data source="onBench"> | |||
<label>Active Ability from bench</label> | |||
<format>{{#ifeq:{{{onBench|}}}|yes|yes{{#if:{{#var:noAutoCategories}}||[[Category:Units Active Ability from bench]]}}|{{{onBench|no}}}[[Category:Units not Active Ability from bench]]}}</format> | |||
</data> | </data> | ||
<data source="damageType"> | <data source="damageType"> | ||
| Line 60: | Line 66: | ||
|name = {{{title|{{PAGENAME}}}}} | |name = {{{title|{{PAGENAME}}}}} | ||
|onTower = {{#ifeq:{{{onTower|}}}|yes|1|0}} | |onTower = {{#ifeq:{{{onTower|}}}|yes|1|0}} | ||
|onWall = {{#ifeq:{{{onTower|}}}|yes|1|0}} | |||
|onBench = {{#ifeq:{{{onTower|}}}|yes|1|0}} | |||
|unreleased = {{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | |unreleased = {{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | ||
|unlocking = {{{unlocking|}}} | |unlocking = {{{unlocking|}}} | ||
|kingdom = {{{kingdom|}}} | |kingdom = {{{kingdom|}}} | ||
|isHero = {{#if:{{{isHero|}}}|1|0}} | |isHero = {{#if:{{{isHero|}}}|1|0}} | ||
|isSiege = {{#if:{{{isSiege|}}}|1|0}} | |||
|description={{{caption|}}} | |description={{{caption|}}} | ||
|damageType = {{{damageType|}}} | |damageType = {{{damageType|}}} | ||
| Line 97: | Line 106: | ||
|kingdom=String | |kingdom=String | ||
|isHero=Boolean | |isHero=Boolean | ||
|isSiege=Boolean | |||
|description=String | |description=String | ||
|damageType=String | |damageType=String | ||
| Line 104: | Line 114: | ||
|role=String | |role=String | ||
|onTower=Boolean | |onTower=Boolean | ||
|onWall=Boolean | |||
|onWall=Boolean | |||
|unreleased=Boolean | |unreleased=Boolean | ||
|requiredForRelics=String | |requiredForRelics=String | ||
Revision as of 21:41, 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.


