Template:ItemQuery: Difference between revisions
Jump to navigation
Jump to search
(bugfix) |
(switched ORs to disjunctions) |
||
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|}}}| |
{{#if:{{{noun|}}}| |
||
[[noun is::{{#arraymap:{{{noun}}}|,|x|x| {{!}}{{!}} }}]]}} |
|||
{{#if:{{{MTag|}}}| |
{{#if:{{{MTag|}}}| |
||
{{#ifeq:{{{MTagmod}}}|OR| |
{{#ifeq:{{{MTagmod}}}|OR| |
||
{{#arraymap:{{{MTag}}}|,|x| |
[[uses material::{{#arraymap:{{{MTag}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}} |
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}} |
||
Line 12: | Line 13: | ||
{{#if:{{{CTag|}}}| |
{{#if:{{{CTag|}}}| |
||
{{#ifeq:{{{CTagmod}}}|OR| |
{{#ifeq:{{{CTagmod}}}|OR| |
||
{{#arraymap:{{{CTag}}}|,|x| |
[[uses color::{{#arraymap:{{{CTag}}}|,|x|x| }}]] |
||
| |
| |
||
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}} |
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}} |
||
Line 19: | Line 20: | ||
{{#if:{{{STag|}}}| |
{{#if:{{{STag|}}}| |
||
{{#ifeq:{{{STagmod}}}|OR| |
{{#ifeq:{{{STagmod}}}|OR| |
||
{{#arraymap:{{{STag}}}|,|x| |
[[uses symbol::{{#arraymap:{{{STag}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}} |
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}} |
||
Line 26: | Line 27: | ||
{{#if:{{{type|}}}| |
{{#if:{{{type|}}}| |
||
{{#ifeq:{{{typemod}}}|OR| |
{{#ifeq:{{{typemod}}}|OR| |
||
{{#arraymap:{{{type}}}|,|x| |
[[has item property::{{#arraymap:{{{type}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
|||
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| |
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| |
||
}} |
}} |
||
Line 34: | Line 35: | ||
{{#if:{{{wearloc|}}}| |
{{#if:{{{wearloc|}}}| |
||
{{#ifeq:{{{wearlocmod}}}|OR| |
{{#ifeq:{{{wearlocmod}}}|OR| |
||
{{#arraymap:{{{wearloc}}}|,|x| |
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|x|x| {{!}}{{!}} }}]] |
||
}} |
|||
| |
| |
||
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| |
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| |
Revision as of 01:30, 29 November 2010
This is the ItemQuery Template. It can only be used through the Item Query