Template:ItemQuery: Difference between revisions
Jump to navigation
Jump to search
(test) |
TEVESHSZAT (talk | contribs) No edit summary |
||
(30 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 43: | 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 54: | Line 77: | ||
}}{{{cost}}}]] |
}}{{{cost}}}]] |
||
}} |
}} |
||
{{# |
{{#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 91: | Line 110: | ||
}} |
}} |
||
}} |
}} |
||
| ?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}} |
|||
⚫ | |||
| ?Worn in slot=Worn Location |
|||
⚫ | |||
⚫ | |||
|{{#switch:{{{sizemod}}}|external=? width is}} |
|||
|{{#switch:{{{sizemod}}}|external=? |
|{{#switch:{{{sizemod}}}|external=?Length is=Length}} |
||
|{{#switch:{{{sizemod}}}| |
|{{#switch:{{{sizemod}}}|external=?Width is=Width}} |
||
|{{#switch:{{{sizemod}}}| |
|{{#switch:{{{sizemod}}}|external=?Height is=Height}} |
||
|{{#switch:{{{sizemod}}}|internal=? |
|{{#switch:{{{sizemod}}}|internal=?Interior length is=Interior Length}} |
||
|{{#switch:{{{sizemod}}}|internal=? |
|{{#switch:{{{sizemod}}}|internal=?Interior width is=Interior Width}} |
||
|{{#switch:{{{ |
|{{#switch:{{{sizemod}}}|internal=?Interior height is=Interior Height}} |
||
⚫ | |||
| ?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