Template:ItemQuery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
TEVESHSZAT (talk | contribs) No edit summary |
||
(54 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]] |
<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]] |
{{#ask:[[Category:Items]][[Page type is::!weapon]][[Page type is::!armor]][[Page type is::!shield]] |
||
{{#if:{{{noun|}}}| |
{{#if:{{{noun|}}}| |
||
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
}} |
|||
{{#if:{{{MTag|}}}| |
{{#if:{{{MTag|}}}| |
||
{{#ifeq:{{{MTagmod}}}|OR| |
{{#ifeq:{{{MTagmod}}}|OR| |
||
{{#arraymap:{{{MTag}}}|,| |
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{MTag}}}|,| |
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]|}} |
||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{CTag|}}}| |
{{#if:{{{CTag|}}}| |
||
{{#ifeq:{{{CTagmod}}}|OR| |
{{#ifeq:{{{CTagmod}}}|OR| |
||
{{#arraymap:{{{CTag}}}|,| |
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{CTag}}}|,| |
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]|}} |
||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{STag|}}}| |
{{#if:{{{STag|}}}| |
||
{{#ifeq:{{{STagmod}}}|OR| |
{{#ifeq:{{{STagmod}}}|OR| |
||
{{#arraymap:{{{STag}}}|,| |
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{STag}}}|,| |
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]|}} |
||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{icategory|}}}| |
||
{{#ifeq:{{{icategorymod}}}|OR| |
|||
| {{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR }} |
|||
[[item category is::{{#arraymap:{{{icategory}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{{icategory}}}|,|@@@@|[[item category is::@@@@]]| |
|||
}} |
|||
}} |
|||
}} |
}} |
||
{{#if:{{{type|}}}| |
|||
<!-- space reserved for Uses; {{{usemod}}}{{{uses}}} --> |
|||
{{#ifeq:{{{typemod}}}|OR| |
|||
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}} |
|||
[[has item property::{{#arraymap:{{{type}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
{{#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:{{{special|}}}| |
|||
{{#ifeq:{{{spmod|}}}|OR| |
|||
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]| OR }} |
|||
| |
| |
||
{{#arraymap:{{{ |
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]| |
||
}} |
|||
}} |
|||
}} |
|||
{{#if:{{{subtype|}}}| |
|||
{{#arraymap:{{{subtype}}}|,|@@@@|[[item type is::@@@@]]| |
|||
}} |
|||
}} |
|||
{{#if:{{{wearloc|}}}| |
|||
{{#ifeq:{{{wearlocmod}}}|OR| |
|||
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#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::@@@@]]|}} |
|||
}} |
|||
}} |
|||
{{#if:{{{weight|}}}|[[weight of::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}} |
|||
{{#if:{{{appcost|}}}|[[appraised cost is:: |
|||
{{#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}}}]] |
|||
}} |
|||
{{#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 |
|||
{{#if:{{{maxcharge|}}}|[[holds mana::+]][[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}} |
|||
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|cambrinth}}|1|0}} or {{#if:{{#pos:{{{type|}}}|gaethzen}}|1|0}}|?Holds mana=Mana}} |
|||
| ?Has item property |
|||
|{{#ifexpr: {{#if:{{#pos:{{{type|}}}|casts spell}}|1|0}} or {{#if:{{#pos:{{{type|}}}|magical tattoo}}|1|0}}|?Item casts spell=Casts Spell}} |
|||
| ?Festival item |
|||
| ?Worn in slot=Worn Location |
|||
| ?Weight of |
|||
| ? |
| ?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 |
|||
}} |
}} |
||
{{Cat|Templates}} |
|||
</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