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 syntax fix |
making caption italic by default, accepting plain input (needed for cargo storing) |
||
| Line 4: | Line 4: | ||
</title> | </title> | ||
<image source="image" /> | <image source="image" /> | ||
<data source="caption"/> | <data source="caption"> | ||
<format>{{#if:{{{caption|}}}|''{{{caption}}}''}}</format> | |||
</data> | |||
<data source="kingdom"> | <data source="kingdom"> | ||
<label>Kingdom</label> | <label>Kingdom</label> | ||
| Line 62: | Line 64: | ||
|kingdom = {{{kingdom|}}} | |kingdom = {{{kingdom|}}} | ||
|isHero = {{#if:{{{isHero|}}}|1|0}} | |isHero = {{#if:{{{isHero|}}}|1|0}} | ||
|description= | |description={{{caption|}}} | ||
|damageType = {{{damageType|}}} | |damageType = {{{damageType|}}} | ||
|element = {{{element|}}} | |element = {{{element|}}} | ||
Revision as of 23:22, 30 November 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.


