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
wgg>Cadaei m Cadaei moved page Template:Infobox unit to Template:Infobox hero without leaving a redirect: renamed ingame |
wgg>Cadaei unit->hero |
||
| Line 7: | Line 7: | ||
-->{{#if:{{{damageType|}}}{{{element|}}}{{{movement|}}}{{{attackStyle|}}}{{{role|}}}|<!-- | -->{{#if:{{{damageType|}}}{{{element|}}}{{{movement|}}}{{{attackStyle|}}}{{{role|}}}|<!-- | ||
-->{{infobox section header|Combat}}<!-- | -->{{infobox section header|Combat}}<!-- | ||
-->{{infobox data row | Placeable in tower | {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category: | -->{{infobox data row | Placeable in tower | {{#ifeq:{{{onTower|}}}|yes|[[File:Tower.png|20px]] yes{{#if:{{#var:noAutoCategories}}||[[Category:Heroes placeable in towers]]}}|{{{onTower|}}}}}}}<!-- | ||
-->{{infobox data row | Damage Type | {{damageTypeDisplay|{{{damageType|}}}|1}}}}<!-- | -->{{infobox data row | Damage Type | {{damageTypeDisplay|{{{damageType|}}}|1}}}}<!-- | ||
-->{{infobox data row | Element | {{elementDisplay|{{{element|}}}|1}}}}<!-- | -->{{infobox data row | Element | {{elementDisplay|{{{element|}}}|1}}}}<!-- | ||
| Line 15: | Line 15: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{infobox footer}} | -->{{infobox footer}} | ||
[[Category: | [[Category:Heroes]] | ||
{{#if:{{#var:noCargo}}||{{#cargo_store:_table= | {{#if:{{#var:noCargo}}||{{#cargo_store:_table=Heroes | ||
|name={{{name|{{PAGENAME}}}}} | |name={{{name|{{PAGENAME}}}}} | ||
|onTower={{#ifeq:{{{onTower|}}}|yes|1|0}} | |onTower={{#ifeq:{{{onTower|}}}|yes|1|0}} | ||
|unreleased={{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | |unreleased={{#if:{{#var:unreleased}}|{{#var:unreleased}}|0}} | ||
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
This is an infobox template for [[ | This is an infobox template for [[heroes]]. | ||
Use it on | Use it on hero pages, e.g. like this | ||
<pre> | <pre> | ||
{{infobox | {{infobox hero | ||
| name = Fighter | | name = Fighter | ||
| image = Fighter.png | | image = Fighter.png | ||
| Line 39: | Line 39: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#cargo_declare:_table= | {{#cargo_declare:_table=Heroes | ||
|name=String | |name=String | ||
|unlocking=String | |unlocking=String | ||
Revision as of 22:58, 13 November 2023
This is an infobox template for heroes. Use it on hero pages, e.g. like this
{{infobox hero
| name = Fighter
| image = Fighter.png
| 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 "Heroes". This table has not been created yet.


