Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 27: Line 27:
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }}
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }}
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| }}
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| }}
}}
{{#if:{{{wearloc|}}}|
{{#ifeq:{{{wearlocmod}}}|OR|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| OR }}
|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]}}
}}
}}
}}
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}}
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}}
Line 32: Line 39:
{{#if:{{{cost|}}}|[[shop cost is::{{#if:{{{costmod|}}}|{{{costmod}}}}}{{{cost}}}]]}}
{{#if:{{{cost|}}}|[[shop cost is::{{#if:{{{costmod|}}}|{{{costmod}}}}}{{{cost}}}]]}}
{{#switch:{{{fest|}}}|yes=[[festival item::true]]|no=[[festival item::false]]|only not=[[festival item::!true]]}}
{{#switch:{{{fest|}}}|yes=[[festival item::true]]|no=[[festival item::false]]|only not=[[festival item::!true]]}}
{{#if:{{{special|}}}|
{{#ifeq:{{{spmod|}}}|OR|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]| OR }}
|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]}}
}}
}}
{{#if:{{{maxcharge|}}}|[[holds mana::+]][[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}}
{{#if:{{{maxcharge|}}}|[[holds mana::+]][[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}}
| ?Has item property
| ?Has item property

Revision as of 21:03, 4 October 2010

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