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= | |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|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 onlyStat Booster: Stat Booster items onlyMiscellaneous: Miscellaneous items onlyTargeting: Targeting items only
{{ItemsTable|Status Effect|Stat Booster|Miscellaneous|Targeting}}
example
{{ItemsTable|Status Effect|Miscellaneous}}



















