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= | |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== | ||
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 | |||
<s><nowiki>{{ItemsTable||Targeting}}</nowiki></s> or <s><nowiki>{{ItemsTable|stt boot|Targeting}}</nowiki></s> | |||
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 | ||
** <code> | ** <code>Status Effect</code>: Status Effect items only | ||
** <code> | ** <code>Stat Booster</code>: Stat Booster items only | ||
** <code> | ** <code>Miscellaneous</code>: Miscellaneous items only | ||
** <code> | ** <code>Targeting</code>: Targeting items only | ||
<nowiki>{{ItemsTable|Status Effect|Stat Booster|Miscellaneous|Targeting}}</nowiki> | |||
<nowiki>{{ | example | ||
{{ItemsTable| | <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 onlyStat Booster: Stat Booster items onlyMiscellaneous: Miscellaneous items onlyTargeting: Targeting items only
{{ItemsTable|Status Effect|Stat Booster|Miscellaneous|Targeting}}
example
{{ItemsTable|Miscellaneous|Targeting}}
| Icon | Name | Effect | Rarity | Kingdom | Caravan |
|---|---|---|---|---|---|
![]() |
Chalice (item) | 1 |
|||
![]() |
Cloverleaf (item) | Enter Inside the Tavern last. | |||
![]() |
Coin bag (item) | 1 |
|||
![]() |
Courage (item) | Any unit can be placed on |
|||
![]() |
Furthest (item) | Change the targeting behavior of a unit. | |||
![]() |
Least HP (item) | Change the targeting behavior of a unit. | |||
![]() |
Magnet (item) | Unequip all items. | |||
![]() |
Most HP (item) | Change the targeting behavior of a unit. | |||
![]() |
Nearest (item) | Change the targeting behavior of a unit. | |||
![]() |
Random (item) | Change the targeting behavior of a unit. | |||
![]() |
Special (item) | Change the targeting behavior of a unit. | |||
![]() |
Strongest (item) | Change the targeting behavior of a unit. | |||
![]() |
Thorns (item) | When getting hit, deal 50% damage to the attacker. | |||
| Unaffected (item) | Change the targeting behavior of a unit. | ||||
| Weakest (item) | Change the targeting behavior of a unit. |















