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:ItemsTable: Difference between revisions

From Super Fantasy Kingdom Official Wiki
temporary
 
No edit summary
Line 1: Line 1:
<includeonly>{{CargoItemsTableHeader}}{{#cargo_query:tables=Items
<includeonly>{{CargoItemsTableHeader}}{{#cargo_query:tables=Items
|fields=name,effect,rarity,kingdom,caravan
|fields=name,effect,rarity,kingdom,caravan
|where=(type='0' OR type IS NULL) AND type = {{#ifeq:{{{type|}}}|heroes|TRUE|FALSE}} AND type = {{#ifeq:{{{type|}}}|Siege|TRUE|FALSE}}
|where= {{#switch:{{{1}}}|Status Effect=type='Status Effect'|Stat Booster=type='Stat Booster'|Miscellaneous=type='Miscellaneous'|Targeting=type='Targeting'|}}{{#switch:{{{2}}}|Status Effect= OR type='Status Effect'|Stat Booster= OR type='Stat Booster'|Miscellaneous= OR type='Miscellaneous'|Targeting= OR type='Targeting'|}}{{#switch:{{{3}}}|Status Effect= OR type='Status Effect'|Stat Booster= OR type='Stat Booster'|Miscellaneous= OR type='Miscellaneous'|Targeting= OR type='Targeting'|}}{{#switch:{{{4}}}|Status Effect= OR type='Status Effect'|Stat Booster= OR type='Stat Booster'|Miscellaneous= OR type='Miscellaneous'|Targeting= OR type='Targeting'|}}
|format=template
|format=template
|template=CargoItemsTableRow
|template=CargoItemsTableRow
Line 8: Line 8:
  <nowiki>{{ItemsTable}}</nowiki>
  <nowiki>{{ItemsTable}}</nowiki>
==Parameters==
==Parameters==
* Types: without a type it will only be items
All 4 parameters can be in any of the 4 slots in any order, but the first slot should never be an empty or wrong value aka
** <code>Type=Siege</code>: Siege items only
<s><nowiki>{{ItemsTable||Targeting}}</nowiki></s> or <s><nowiki>{{ItemsTable|stt boot|Targeting}}</nowiki></s>
** <code>Type=heroes</code>: heroes only
with no parameters it will show all items, with one or multiple parameters it will show only those
* Columns: without the columns mentioned they won't be in the table
* Types: without a type it will be all items
** <code>description=1</code>: adds the '''Info''' column, this is usually the text that appears on the card
** <code>Status Effect</code>: Status Effect items only
** <code>unlocking=1</code>: adds the '''How to unlock''' column, this was added for Siege Engines, so it would not be visible there
** <code>Stat Booster</code>: Stat Booster items only
** <code>onTower=1</code>: adds the '''On Tower''' column, this was added for Heroes so it would not be visible there
** <code>Miscellaneous</code>: Miscellaneous items only
** <code>onWall=1</code>: adds the '''On Wall''' column, this was added for Siege Engines
** <code>Targeting</code>: Targeting items only
** <code>onBench=1</code>: adds the '''Attack from Bench''' column, this was added for Siege Engines
<nowiki>{{ItemsTable|Status Effect|Stat Booster|Miscellaneous|Targeting}}</nowiki>
  <nowiki>{{itemsTable|type=Siege|description=1|unlocking=1|onTower=1|onWall=1|onBench=1}}</nowiki>
example
{{ItemsTable|type=Siege|description=1|unlocking=1|onTower=1|onWall=1|onBench=1}}
  <nowiki>{{ItemsTable|Miscellaneous|Targeting}}</nowiki>
{{ItemsTable|Miscellaneous|Targeting}}
[[Category:Cargo query templates]]</noinclude>
[[Category:Cargo query templates]]</noinclude>

Revision as of 12:33, 1 May 2026

Displays a table of all items with properties. Use with

{{ItemsTable}}

Parameters

All 4 parameters can be in any of the 4 slots in any order, but the first slot should never be an empty or wrong value aka

{{ItemsTable||Targeting}} or {{ItemsTable|stt boot|Targeting}}

with no parameters it will show all items, with one or multiple parameters it will show only those

  • Types: without a type it will be all items
    • Status Effect: Status Effect items only
    • Stat Booster: Stat Booster items only
    • Miscellaneous: Miscellaneous items only
    • Targeting: Targeting items only
{{ItemsTable|Status Effect|Stat Booster|Miscellaneous|Targeting}}

example

{{ItemsTable|Miscellaneous|Targeting}}
Icon Name Effect Rarity Kingdom Caravan
Chalice (item) Chalice (item) 1 Faith every Morning. Legendary Elven Elven
Cloverleaf (item) Cloverleaf (item) Enter Inside the Tavern last. Rare Human Human
Coin bag (item) Coin bag (item) 1 Coin every Morning. Legendary Desert Desert
Courage (item) Courage (item) Any unit can be placed on Towers. Legendary Swamp Swamp
Furthest (item) Furthest (item) Change the targeting behavior of a unit. Rare Dwarven
Least HP (item) Least HP (item) Change the targeting behavior of a unit. Rare Undead
Magnet (item) Magnet (item) Unequip all items. Epic Barbarian
Most HP (item) Most HP (item) Change the targeting behavior of a unit. Rare Human
Nearest (item) Nearest (item) Change the targeting behavior of a unit. Rare Nature
Random (item) Random (item) Change the targeting behavior of a unit. Rare Demon
Special (item) Special (item) Change the targeting behavior of a unit. Rare Elven
Strongest (item) Strongest (item) Change the targeting behavior of a unit. Rare Barbarian
Thorns (item) Thorns (item) When getting hit, deal 50% damage to the attacker. Epic Nature Nature
Unaffected (item) Unaffected (item) Change the targeting behavior of a unit. Rare Swamp
Weakest (item) Weakest (item) Change the targeting behavior of a unit. Rare Desert