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
 
edit for better testing
 
(One intermediate revision by the same user not shown)
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|Status Effect|Miscellaneous}}</nowiki>
{{ItemsTable|Status Effect|Miscellaneous}}
[[Category:Cargo query templates]]</noinclude>
[[Category:Cargo query templates]]</noinclude>

Latest revision as of 22:48, 11 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|Status Effect|Miscellaneous}}
Icon Name Effect Rarity Kingdom Caravan
Amulet (item) Amulet (item) Gain Poisoned immunity. Epic Swamp Swamp
Barrier (item) Barrier (item) Apply Barrier every 10s. Legendary Undead Undead
Burn (item) Burn (item) Apply Burn. Legendary Demon Demon
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
Fatigue (item) Fatigue (item) Apply Fatigue. Legendary Undead Undead
Freeze (item) Freeze (item) Apply Freeze. Legendary Elven Elven
Magnet (item) Magnet (item) Unequip all items. Epic Barbarian
Overshield (item) Overshield (item) Overcharges  Shield by 5 every 10s. Legendary Dwarven Dwarven
Radiance (item) Radiance (item) Apply Radiance. Legendary Human Human
Rejuvenate (item) Rejuvenate (item) Apply Rejuvenate 3 every 10s. Legendary Nature Nature
Ring (item) Ring (item) Gain Burn Immunity. Epic Barbarian Barbarian
Shock (item) Shock (item) Apply Shock. Legendary Dwarven Dwarven
Thorns (item) Thorns (item) When getting hit, deal 50% damage to the attacker. Epic Nature Nature
Wetness (item) Wetness (item) Apply Wet Legendary desert desert