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
m 62 revisions imported |
using portable infobox |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><infobox> | ||
<title source="title"> | |||
<default>{{PAGENAME}}</default> | |||
</title> | |||
<image source="image" /> | |||
<data source="caption" style="text-align: center"/> | |||
<data source="kingdom"> | |||
<label>Kingdom</label> | |||
<format>{{kingdomDisplay|{{{kingdom|}}}|1}}</format> | |||
</data> | |||
<data source="unlocking"> | |||
<label>Unlocking</label> | |||
</data> | |||
<data source="recruiting"> | |||
<label>Recruiting</label> | |||
</data> | |||
<data source="upgradeCosts"> | |||
<label>Upgrade Costs</label> | |||
</data> | |||
<group> | |||
<header>Combat</header> | |||
<data source="onTower"> | |||
<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> | |||
</data> | |||
<data source="damageType"> | |||
<label>Damage Type</label> | |||
<format>{{damageTypeDisplay|{{{damageType|}}}|1}}</format> | |||
</data> | |||
<data source="element"> | |||
<label>Element</label> | |||
<format>{{elementDisplay|{{{element|}}}|1}}</format> | |||
</data> | |||
<data source="movement"> | |||
<label>Movement</label> | |||
<format>{{movementDisplay|{{{movement|}}}|1}}</format> | |||
</data> | |||
<data source="attackStyle"> | |||
<label>Attack Style</label> | |||
<format>{{attackStyleDisplay|{{{attackStyle|}}}|1}}</format> | |||
</data> | |||
<data source="role"> | |||
<label>Role</label> | |||
<format>{{roleDisplay|{{{role|}}}|1}}</format> | |||
</data> | |||
<data> | |||
<label>Resistance</label> | |||
<default>{{itemLink|{{kingdom bonus|{{{kingdom|}}}|resistance}}}}</default> | |||
</data> | |||
<data> | |||
<label>Weakness</label> | |||
<default>{{itemLink|{{kingdom bonus|{{{kingdom|}}}|weakness}}}}</default> | |||
</data> | |||
</group> | |||
</infobox> | |||
[[Category:Units]] | [[Category:Units]] | ||
{{#if:{{#var:noCargo}}||{{#cargo_store:_table=Units | {{#if:{{#var:noCargo}}||{{#cargo_store:_table=Units | ||
Revision as of 22:43, 27 October 2025
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.


