Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
m (altered formatting)
Line 2: Line 2:
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask:[[Category:Items]][[Page type is::!weapon]][[Page type is::!armor]][[Page type is::!shield]]
{{#ask:[[Category:Items]][[Page type is::!weapon]][[Page type is::!armor]][[Page type is::!shield]]
{{#if:{{{noun|}}}|{{#arraymap:{{{noun}}}|,|x|[[noun is::x]]| OR }}}}
{{#if:{{{noun|}}}|
{{#if:{{{MTag|}}}|
{{#arraymap:{{{noun}}}|,|x|[[noun is::x]]| OR
}}
{{#ifeq:{{{MTagmod}}}|OR|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR }}
|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}}
}}
}}
{{#if:{{{MTag|}}}|
}}
{{#if:{{{CTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#ifeq:{{{CTagmod}}}|OR|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR
}}
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]| OR }}
|
|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}}
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]|
}}
}}
}}
}}
{{#if:{{{CTag|}}}|
}}
{{#if:{{{STag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
{{#ifeq:{{{STagmod}}}|OR|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]| OR
}}
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]| OR }}
|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]|
}}
}}
}}
{{#if:{{{STag|}}}|
{{#ifeq:{{{STagmod}}}|OR|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]| OR
}}
|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]|
}}
}}
}}
{{#if:{{{type|}}}|#ifeq:{{{typemod}}}|OR|
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR
}}
|
|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::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:{{{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:{{{type|}}}|#ifeq:{{{typemod}}}|OR
{{#if:{{{mmod|}}}
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }}
|{{{mmod|}}}
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| }}
}}{{{maxcharge}}}]]
}}
{{#if:{{{wearloc|}}}|
{{#ifeq:{{{wearlocmod}}}|OR|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| OR }}
|
|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]}}
}}
}}
| ?Has item property
}}
| ?Festival item
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}}
| ?Weight of
{{#if:{{{appcost|}}}|[[appraised cost is::{{#if:{{{apmod|}}}|{{{apmod}}}}}{{{appcost}}}]]}}
| ?Holds mana
{{#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:13, 4 October 2010

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