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 default unlocking for units and disabled upgrade for now, should be renamed to promotion anyway |
temporary redisabled unlocking until all info is changed |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
<data source="unlocking"> | <data source="unlocking"> | ||
<label>Unlocking</label> | <label>Unlocking</label> | ||
<default>{{UnitUnlockSmall}}</default> | <!--<default>{{UnitUnlockSmall}}</default>--> | ||
<format></format> | |||
</data> | </data> | ||
<data source="recruiting"> | <data source="recruiting"> | ||
| Line 73: | Line 74: | ||
|onBench = {{#ifeq:{{{onBench|}}}|yes|1|0}} | |onBench = {{#ifeq:{{{onBench|}}}|yes|1|0}} | ||
|unreleased = {{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | |unreleased = {{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | ||
|unlocking = {{#if:{{{unlocking|}}}|{{{unlocking|}}}| | |unlocking = {{#if:{{{unlocking|}}}|{{{unlocking|}}}|{{UnitUnlockSmall}}}} | ||
|kingdom = {{{kingdom|}}} | |kingdom = {{{kingdom|}}} | ||
|isHero = {{#if:{{{isHero|}}}|1|0}} | |isHero = {{#if:{{{isHero|}}}|1|0}} | ||
Latest revision as of 02:52, 23 April 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.


