Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
(bugfix?)
Line 24: Line 24:
}}
}}
}}
}}
{{#if:{{{type|}}}|#ifeq:{{{typemod}}}|OR|{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }}|{{#arraymap:{{{type}}}|,|x|[[has item property::x]]|}}}}
{{#if:{{{type|}}}|{{#ifeq:{{{typemod}}}|OR|{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }}|{{#arraymap:{{{type}}}|,|x|[[has item property::x]]|}}}}
{{#if:{{{wearloc|}}}|
| ?Has item property
{{#ifeq:{{{wearlocmod}}}|OR|
| ?Festival item
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| OR
| ?Weight of
}}
| ?Holds mana
|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]|
}}
}}
}}
{{#if:{{{weight|}}}|[[weight is::
{{#if:{{{wmod|}}}|{{{wmod}}}
}}{{{weight}}}]]
}}
{{#if:{{{appcost|}}}|[[appraised cost is::
{{#if:{{{apmod|}}}|{{{apmod}}}
}}{{{appcost}}}]]
}}
{{#if:{{{cost|}}}|[[shop cost is::
{{#if:{{{costmod|}}}|{{{costmod}}}
}}{{{cost}}}]]
}}
{{#switch:{{{fest|}}}
|yes=[[festival item::true]]
|no=[[festival item::false]]
|only not=[[festival item::!true]]
}}
{{#if:{{{maxcharge|}}}
|[[holds mana::+]][[holds mana::
{{#if:{{{mmod|}}}
|{{{mmod|}}}
}}{{{maxcharge}}}]]
|
}}
| ?Has item property
| ?Festival item
| ?Weight of
| ?Holds mana
}}
}}
</includeonly>
</includeonly>

Revision as of 21:25, 4 October 2010

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