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:UnitsTable: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei Created page with "<includeonly>{{CargoUnitTableHeader}}{{#cargo_query:tables=Units |fields=name,unlocking,damageType,element,movement,attackStyle,role,kingdom |format=template |template=CargoUnitTableRow |named args=yes }}{{TableEndHtml}}</includeonly><noinclude>Displays a table of all units with properties. Use with <nowiki>{{UnitTable}}</nowiki> Category:Cargo query templates</noinclude>" |
added isSiege and parameters |
||
| (12 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{CargoUnitsTableHeader|description={{{description|}}}|unlocking={{{unlocking|}}}|onTower={{{onTower|}}}|onWall={{{onWall|}}}|onBench={{{onBench|}}}}}{{#cargo_query:tables=Units | ||
|fields=name,unlocking,damageType,element,movement,attackStyle,role,kingdom | |fields=name,{{#if:{{{unlocking|}}}|unlocking,}}{{#if:{{{description|}}}|description,}}damageType,element,movement,attackStyle,role,kingdom{{#if:{{{onTower|}}}|,onTower}}{{#if:{{{onWall|}}}|,onWall}}{{#if:{{{onBench|}}}|,onBench}} | ||
|where=(unreleased='0' OR unreleased IS NULL) AND isHero = {{#ifeq:{{{type|}}}|heroes|TRUE|FALSE}} AND IsSiege = {{#ifeq:{{{type|}}}|Siege|TRUE|FALSE}} | |||
|format=template | |format=template | ||
|template= | |template=CargoUnitsTableRow | ||
|named args=yes | |named args=yes | ||
}}{{TableEndHtml}}</includeonly><noinclude>Displays a table of all units with properties. Use with | }}{{TableEndHtml}}</includeonly><noinclude>Displays a table of all units with properties. Use with | ||
<nowiki>{{ | <nowiki>{{UnitsTable}}</nowiki> | ||
==Parameters== | |||
* Types: without a type it will only be units | |||
** <code>Type=Siege</code>: Siege units only | |||
** <code>Type=heroes</code>: heroes only | |||
* Columns: without the columns mentioned they won't be in the table | |||
** <code>description=1</code>: adds the '''Info''' column, this is usually the text that appears on the card | |||
** <code>unlocking=1</code>: adds the '''How to unlock''' column, this was added for Siege Engines, so it would not be visible there | |||
** <code>onTower=1</code>: adds the '''On Tower''' column, this was added for Heroes so it would not be visible there | |||
** <code>onWall=1</code>: adds the '''On Wall''' column, this was added for Siege Engines | |||
** <code>onBench=1</code>: adds the '''Attack from Bench''' column, this was added for Siege Engines | |||
<nowiki>{{unitsTable|type=Siege|description=1|unlocking=1|onTower=1|onWall=1|onBench=1}}</nowiki> | |||
{{unitsTable|type=Siege|description=1|unlocking=1|onTower=1|onWall=1|onBench=1}} | |||
[[Category:Cargo query templates]]</noinclude> | [[Category:Cargo query templates]]</noinclude> | ||
Latest revision as of 14:46, 13 February 2026
Displays a table of all units with properties. Use with
{{UnitsTable}}
Parameters
- Types: without a type it will only be units
Type=Siege: Siege units onlyType=heroes: heroes only
- Columns: without the columns mentioned they won't be in the table
description=1: adds the Info column, this is usually the text that appears on the cardunlocking=1: adds the How to unlock column, this was added for Siege Engines, so it would not be visible thereonTower=1: adds the On Tower column, this was added for Heroes so it would not be visible thereonWall=1: adds the On Wall column, this was added for Siege EnginesonBench=1: adds the Attack from Bench column, this was added for Siege Engines
{{unitsTable|type=Siege|description=1|unlocking=1|onTower=1|onWall=1|onBench=1}}
| Icon | Name | Info | How to unlock | Damage Type | Element | Movement | Attack Style | Role | Kingdom | On Tower | On Wall | Active on Bench |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Ballista | Need walls! | When it's caught by the |
None | ||||||||
![]() |
Bloat (siege) | Summons exploding corpses | When it's caught by the |
None | ||||||||
![]() |
Bone Barrier | Spiky but Weak | When it's caught by the |
None | None | |||||||
![]() |
Bone Golem | Big but Slow | When it's caught by the |
None | ||||||||
![]() |
Brazier | Light 'em up! | When it's caught by the |
None | None | None | ||||||
![]() |
Cannon | Can attack from the bench | When it's caught by the |
None | ||||||||
![]() |
Catapult | Can attack from the bench | When it's caught by the |
None | ||||||||
![]() |
Dark Pylon | Needs walls! | When it's caught by the |
None | None | |||||||
![]() |
Fire Totem | Give 'em heat! | When it's caught by the |
|||||||||
![]() |
Holy Tree | Generates faith! | When it's caught by the |
None | None | |||||||
![]() |
Palisade | A small protection | When it's caught by the |
None | None | None | ||||||
![]() |
Scarecrow | Do you like scary monsters? | When it's caught by the |
None | None | |||||||
![]() |
Tesla Coil | It's alive! | When it's caught by the |
|||||||||
![]() |
Trebuchet | Can attack from the bench | When it's caught by the |
None |
















