Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (altered formatting)
No edit summary
 
(51 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|}}}|
{{#arraymap:{{{noun}}}|,|x|[[noun is::x]]| OR
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
}}
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]|}}
}}
}}
}}
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#if:{{{CTag|}}}|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR
{{#ifeq:{{{CTagmod}}}|OR|
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
|
|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]|
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]|}}
}}
}}
}}
}}
}}
{{#if:{{{CTag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
{{#if:{{{STag|}}}|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]| OR
{{#ifeq:{{{STagmod}}}|OR|
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
|
|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]|
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]|}}
}}
}}
}}
}}
}}
{{#if:{{{STag|}}}|
{{#ifeq:{{{STagmod}}}|OR|
{{#if:{{{icategory|}}}|
{{#ifeq:{{{icategorymod}}}|OR|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]| OR
[[item category is::{{#arraymap:{{{icategory}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
|
|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]|
{{#arraymap:{{{icategory}}}|,|@@@@|[[item category is::@@@@]]|
}}
}}
}}
}}
}}
}}
{{#if:{{{type|}}}|#ifeq:{{{typemod}}}|OR|
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR
{{#if:{{{type|}}}|
{{#ifeq:{{{typemod}}}|OR|
}}
[[has item property::{{#arraymap:{{{type}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]|
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]|
}}
}}
}}
}}
}}
{{#if:{{{wearloc|}}}|
{{#ifeq:{{{wearlocmod}}}|OR|
{{#if:{{{subtype|}}}|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]| OR
{{#arraymap:{{{subtype}}}|,|@@@@|[[item type is::@@@@]]|
}}
}}
}}
|
{{#arraymap:{{{wearloc}}}|,|x|[[worn in slot::x]]|
{{#if:{{{wearloc|}}}|
{{#ifeq:{{{wearlocmod}}}|OR|
}}
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{wearloc}}}|,|@@@@|[[worn in slot::@@@@]]|
}}
}}
}}
}}
}}
{{#if:{{{weight|}}}|[[weight is::
{{#if:{{{wmod|}}}|{{{wmod}}}
{{#if:{{{rtype|}}}|
}}{{{weight}}}]]
{{#ifeq:{{{rtypemod}}}|OR|
[[race association is::{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|[[race association is::@@@@]]|}}
}}
}}
}}
{{#if:{{{appcost|}}}|[[appraised cost is::
{{#if:{{{apmod|}}}|{{{apmod}}}
{{#if:{{{gtype|}}}|
}}{{{appcost}}}]]
{{#ifeq:{{{gtypemod}}}|OR|
[[guild association is::{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|[[guild association is::@@@@]]|}}
}}
}}
}}
{{#if:{{{cost|}}}|[[shop cost is::
{{#if:{{{costmod|}}}|{{{costmod}}}
{{#if:{{{weight|}}}|[[weight of::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}}
{{#if:{{{appcost|}}}|[[appraised cost is::
}}{{{cost}}}]]
{{#if:{{{apmod|}}}|{{{apmod}}}
}}{{{appcost}}}]]
}}
{{#if:{{{cost|}}}|[[shop cost is::
{{#if:{{{costmod|}}}|{{{costmod}}}
}}{{{cost}}}]]
}}
{{#if:{{{rarity|}}}|[[rarity is::{{{rarity}}}]]}}
{{#if:{{{maxcharge|}}}
|[[holds mana::
{{#if:{{{mmod|}}}
|{{{mmod|}}}
}}{{{maxcharge}}}]]
|
}}
{{#switch:{{{sizemod}}}
|external=
{{#if:{{{length|}}}
|[[length is::<{{{length}}}]]
}}
}}
{{#switch:{{{fest|}}}
{{#if:{{{width|}}}
|yes=[[festival item::true]]
|[[width is::<{{{width}}}]]
|no=[[festival item::false]]
|only not=[[festival item::!true]]
}}
}}
{{#if:{{{maxcharge|}}}
{{#if:{{{height|}}}
|[[holds mana::+]][[holds mana::
|[[height is::<{{{height}}}]]
}}
{{#if:{{{mmod|}}}
|internal=
|{{{mmod|}}}
}}{{{maxcharge}}}]]
{{#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
| ?Festival item
| ?Has item property=Properties
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|cambrinth}}|1|0}} or {{#if:{{#pos:{{{type|}}}|gaethzen}}|1|0}}|?Holds mana=Mana}}
| ?Weight of
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|casts spell}}|1|0}} or {{#if:{{#pos:{{{type|}}}|magical tattoo}}|1|0}}|?Item casts spell=Casts Spell}}
| ?Holds mana
| ?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