Template:ItemQuery: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
TEVESHSZAT (talk | contribs) No edit summary |
||
(50 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|}}}| |
|||
{{#arraymap:{{{noun}}}|,| |
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
||
}} |
|||
{{#if:{{{MTag|}}}| |
|||
{{#ifeq:{{{MTagmod}}}|OR| |
|||
[[uses material::{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{lc:{{{MTag}}}}}|,|@@@@|[[uses material::@@@@]]|}} |
|||
}} |
}} |
||
}} |
|||
{{#if:{{{MTag|}}}|{{#ifeq:{{{MTagmod}}}|OR|{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR }}|{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]|}}}}}} |
|||
{{#if:{{{CTag|}}}| |
|||
{{#ifeq:{{{CTagmod}}}|OR| |
|||
{{#arraymap:{{{CTag}}}|,| |
[[uses color::{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
||
| |
|||
{{#arraymap:{{lc:{{{CTag}}}}}|,|@@@@|[[uses color::@@@@]]|}} |
|||
| |
|||
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]| |
|||
}} |
|||
}} |
|||
}} |
}} |
||
}} |
|||
{{#if:{{{STag|}}}| |
|||
{{#if:{{{STag|}}}| |
|||
{{#ifeq:{{{STagmod}}}|OR| |
|||
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
}} |
|||
| |
|||
{{#arraymap:{{lc:{{{STag}}}}}|,|@@@@|[[uses symbol::@@@@]]|}} |
|||
}} |
|||
}} |
|||
}} |
}} |
||
}} |
|||
{{#if:{{{type|}}}|#ifeq:{{{typemod}}}|OR| |
|||
{{#if:{{{icategory|}}}| |
|||
{{#arraymap:{{{type}}}|,|x|[[has item property::x]]| OR |
|||
{{#ifeq:{{{icategorymod}}}|OR| |
|||
[[item category is::{{#arraymap:{{{icategory}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{{icategory}}}|,|@@@@|[[item category is::@@@@]]| |
|||
}} |
}} |
||
}} |
|||
}} |
|||
{{#if:{{{type|}}}| |
|||
{{#ifeq:{{{typemod}}}|OR| |
|||
[[has item property::{{#arraymap:{{{type}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
| |
||
{{#arraymap:{{{type}}}|,| |
{{#arraymap:{{{type}}}|,|@@@@|[[has item property::@@@@]]| |
||
}} |
}} |
||
}} |
}} |
||
}} |
|||
{{#if:{{{wearloc|}}}| |
|||
{{#if:{{{subtype|}}}| |
|||
{{#arraymap:{{{subtype}}}|,|@@@@|[[item type is::@@@@]]| |
|||
}} |
|||
}} |
|||
| |
|||
{{#if:{{{wearloc|}}}| |
|||
{{#ifeq:{{{wearlocmod}}}|OR| |
|||
}} |
|||
[[worn in slot::{{#arraymap:{{{wearloc}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{{wearloc}}}|,|@@@@|[[worn in slot::@@@@]]| |
|||
}} |
}} |
||
}} |
}} |
||
}} |
|||
{{#if:{{{weight|}}}|[[weight is:: |
|||
{{#if:{{{rtype|}}}| |
|||
{{#ifeq:{{{rtypemod}}}|OR| |
|||
[[race association is::{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{lc:{{{rtype}}}}}|,|@@@@|[[race association is::@@@@]]|}} |
|||
}} |
}} |
||
}} |
|||
{{#if:{{{appcost|}}}|[[appraised cost is:: |
|||
{{#if:{{{gtype|}}}| |
|||
{{#ifeq:{{{gtypemod}}}|OR| |
|||
[[guild association is::{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|@@@@| {{!}}{{!}} }}]] |
|||
| |
|||
{{#arraymap:{{lc:{{{gtype}}}}}|,|@@@@|[[guild association is::@@@@]]|}} |
|||
}} |
}} |
||
}} |
|||
{{#if:{{{cost|}}}|[[shop cost is:: |
|||
{{#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}}}]] |
|||
}} |
}} |
||
{{# |
{{#if:{{{width|}}} |
||
| |
|[[width is::<{{{width}}}]] |
||
|no=[[festival item::false]] |
|||
|only not=[[festival item::!true]] |
|||
}} |
}} |
||
{{#if:{{{ |
{{#if:{{{height|}}} |
||
|[[ |
|[[height is::<{{{height}}}]] |
||
}} |
|||
{{#if:{{{mmod|}}} |
|||
|internal= |
|||
|{{{mmod|}}} |
|||
{{#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 |
|||
| ?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