Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(add sources, and spell cast, and column aliases)
(trying to do an OR condition... if type filter has either "casts spell" and/or "magical tattoo" then show the spell it casts)
Line 94: Line 94:
| ?Has item property=Properties
| ?Has item property=Properties
|{{#switch:{{{type}}}|cambrinth|gaethzen=?Holds mana}}
|{{#switch:{{{type}}}|cambrinth|gaethzen=?Holds mana}}
|{{#switch:{{{type}}}|casts spell|magical tattoo=?Item casts spell=Casts Spell}}
|{{#ifexpr: {{#pos:{{{type|}}}|casts spell}} > 0 or {{#pos:{{{type|}}}|magical tattoo}} > 0
|?Item casts spell=Casts Spell
}}
| ?Worn in slot=Worn Location
| ?Worn in slot=Worn Location
| ?Weight of=Weight
| ?Weight of=Weight

Revision as of 01:41, 17 June 2021

This is the ItemQuery Template. It can only be used through the Item Query