Template:ItemQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(36 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}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]}}
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
}}
{{#if:{{{MTag|}}}|
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#ifeq:{{{MTagmod}}}|OR|
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]}}
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]|}}
}}
}}
}}
}}
{{#if:{{{CTag|}}}|
{{#if:{{{CTag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
{{#ifeq:{{{CTagmod}}}|OR|
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| }}]]
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]}}
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]|}}
}}
}}
}}
}}
Line 22: Line 23:
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]}}
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]|}}
}}
}}
{{#if:{{{icategory|}}}|
{{#ifeq:{{{icategorymod}}}|OR|
[[item category is::{{#arraymap:{{{icategory}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{icategory}}}|,|@@@@|[[item category is::@@@@]]|
}}
}}
}}
}}
}}
Line 31: Line 40:
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]|
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]|
}}
}}
}}
}}
{{#if:{{{subtype|}}}|
{{#arraymap:{{{subtype}}}|,|@@@@|[[item type is::@@@@]]|
}}
}}
}}
}}
Line 39: Line 52:
{{#arraymap:{{{wearloc}}}|,|@@@@|[[worn in slot::@@@@]]|
{{#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 82: Line 105:
{{#if:{{{height|}}}
{{#if:{{{height|}}}
|[[Interior height is::>{{{height}}}]]
|[[Interior height is::>{{{height}}}]]
}}
{{#if:{{{weightcapacity|}}}
|[[weight capacity is::>{{{weightcapacity}}}]]
}}
}}
}}
}}
| ?Has item property
| ?Has item property=Properties
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|cambrinth}}|1|0}} or {{#if:{{#pos:{{{type|}}}|gaethzen}}|1|0}}|?Holds mana=Mana}}
| ?Rare item
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|casts spell}}|1|0}} or {{#if:{{#pos:{{{type|}}}|magical tattoo}}|1|0}}|?Item casts spell=Casts Spell}}
| ?Weight of
| ?Worn in slot=Worn Location
| ?Holds mana
| ?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