Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(trying to do an OR condition... if type filter has either "casts spell" and/or "magical tattoo" then show the spell it casts)
(Undo revision 558504 by TRAIGA (talk))
Line 94: Line 94:
| ?Has item property=Properties
| ?Has item property=Properties
|{{#switch:{{{type}}}|cambrinth|gaethzen=?Holds mana}}
|{{#switch:{{{type}}}|cambrinth|gaethzen=?Holds mana}}
|{{#ifexpr: {{#pos:{{{type|}}}|casts spell}} > 0 or {{#pos:{{{type|}}}|magical tattoo}} > 0
|{{#switch:{{{type}}}|casts spell|magical tattoo=?Item casts spell=Casts Spell}}
|?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:45, 17 June 2021

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