Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This is the ItemQuery Template. It can only be used through the [[Special:RunQuery/ItemQuery|Item Query]]{{Cat|Templates}}
<noinclude>This is the ItemQuery Template. It can only be used through the [[Special:RunQuery/ItemQuery|Item Query]]{{Cat|Templates,Search Templates}}
</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| {{!}}{{!}} }}]]}}
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
{{#if:{{{MTag|}}}|
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#ifeq:{{{MTagmod}}}|OR|
[[uses material::{{#arraymap:{{{MTag}}}|,|x|x| {{!}}{{!}} }}]]
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}}
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]|}}
}}
}}
}}
}}
{{#if:{{{CTag|}}}|
{{#if:{{{CTag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
{{#ifeq:{{{CTagmod}}}|OR|
[[uses color::{{#arraymap:{{{CTag}}}|,|x|x| }}]]
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}}
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]|}}
}}
}}
}}
}}
{{#if:{{{STag|}}}|
{{#if:{{{STag|}}}|
{{#ifeq:{{{STagmod}}}|OR|
{{#ifeq:{{{STagmod}}}|OR|
[[uses symbol::{{#arraymap:{{{STag}}}|,|x|x| {{!}}{{!}} }}]]
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}}
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]|}}
}}
}}
{{#if:{{{icategory|}}}|
{{#ifeq:{{{icategorymod}}}|OR|
[[item category is::{{#arraymap:{{{icategory}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{icategory}}}|,|@@@@|[[item category is::@@@@]]|
}}
}}
}}
}}
}}
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
{{#ifeq:{{{typemod}}}|OR|
{{#ifeq:{{{typemod}}}|OR|
[[has item property::{{#arraymap:{{{type}}}|,|x|x| {{!}}{{!}} }}]]
[[has item property::{{#arraymap:{{{type}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]|
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]|
}}
}}
}}
}}
{{#if:{{{subtype|}}}|
{{#arraymap:{{{subtype}}}|,|@@@@|[[item type is::@@@@]]|
}}
}}
}}
}}
{{#if:{{{wearloc|}}}|
{{#if:{{{wearloc|}}}|
{{#ifeq:{{{wearlocmod}}}|OR|
{{#ifeq:{{{wearlocmod}}}|OR|
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|x|x| {{!}}{{!}} }}]]
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]|
{{#arraymap:{{{wearloc}}}|,|@@@@|[[worn in slot::@@@@]]|
}}
}}
}}
}}
{{#if:{{{rtype|}}}|
{{#ifeq:{{{rtypemod}}}|OR|
[[race association is::{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|[[race association is::@@@@]]|}}
}}
}}
{{#if:{{{gtype|}}}|
{{#ifeq:{{{gtypemod}}}|OR|
[[guild association is::{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|[[guild association is::@@@@]]|}}
}}
}}
}}
}}
Line 50: Line 77:
}}{{{cost}}}]]
}}{{{cost}}}]]
}}
}}
{{#switch:{{{fest|}}}
{{#if:{{{rarity|}}}|[[rarity is::{{{rarity}}}]]}}
|yes=[[rare item::true]]
|no=[[rare item::false]]
|only not=[[rare item::!true]]
}}
{{#if:{{{maxcharge|}}}
{{#if:{{{maxcharge|}}}
|[[holds mana::
|[[holds mana::
Line 62: Line 85:
|
|
}}
}}
{{#switch:{{{sizemod}}}
| ?Has item property
|external=
| ?Festival item
{{#if:{{{length|}}}
| ?Weight of
|[[length is::<{{{length}}}]]
| ?Holds mana
}}
{{#if:{{{width|}}}
|[[width is::<{{{width}}}]]
}}
{{#if:{{{height|}}}
|[[height is::<{{{height}}}]]
}}
|internal=
{{#if:{{{length|}}}
|[[Interior length is::>{{{length}}}]]
}}
{{#if:{{{width|}}}
|[[Interior width is::>{{{width}}}]]
}}
{{#if:{{{height|}}}
|[[Interior height is::>{{{height}}}]]
}}
{{#if:{{{weightcapacity|}}}
|[[weight capacity is::>{{{weightcapacity}}}]]
}}
}}
| ?Has item property=Properties
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|cambrinth}}|1|0}} or {{#if:{{#pos:{{{type|}}}|gaethzen}}|1|0}}|?Holds mana=Mana}}
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|casts spell}}|1|0}} or {{#if:{{#pos:{{{type|}}}|magical tattoo}}|1|0}}|?Item casts spell=Casts Spell}}
| ?Worn in slot=Worn Location
| ?Weight of=Weight
|{{#switch:{{{sizemod}}}|external=?Length is=Length}}
|{{#switch:{{{sizemod}}}|external=?Width is=Width}}
|{{#switch:{{{sizemod}}}|external=?Height is=Height}}
|{{#switch:{{{sizemod}}}|internal=?Interior length is=Interior Length}}
|{{#switch:{{{sizemod}}}|internal=?Interior width is=Interior Width}}
|{{#switch:{{{sizemod}}}|internal=?Interior height is=Interior Height}}
|{{#switch:{{{sizemod}}}|internal=?Weight capacity is=Weight Capacity}}
| ?Source is=Sources
}}
}}
</includeonly>
</includeonly>

Latest revision as of 20:05, 20 November 2023

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