Template:ShieldQuery: Difference between revisions
Jump to navigation
Jump to search
m (bugfix) |
TEVESHSZAT (talk | contribs) No edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This is the ShieldQuery Template. It can only be used through the [[Special:RunQuery/ShieldQuery|Shield Query]]{{Cat|Templates}} |
<noinclude>This is the ShieldQuery Template. It can only be used through the [[Special:RunQuery/ShieldQuery|Shield Query]]{{Cat|Templates,Search Templates}} |
||
</noinclude><includeonly> |
</noinclude><includeonly> |
||
{{#ask:[[Category: |
{{#ask:[[Category:Shields]] |
||
{{#if:{{{noun|}}}| |
{{#if:{{{noun|}}}| |
||
[[noun is::{{#arraymap:{{{noun}}}|,|x|x| {{!}}{{!}} }}]]}} |
|||
{{#if:{{{MTag|}}}| |
{{#if:{{{MTag|}}}| |
||
{{#ifeq:{{{MTagmod}}}|OR| |
{{#ifeq:{{{MTagmod}}}|OR| |
||
{{#arraymap:{{{MTag}}}|,|x| |
[[uses material::{{#arraymap:{{{MTag}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}} |
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}} |
||
Line 12: | Line 13: | ||
{{#if:{{{CTag|}}}| |
{{#if:{{{CTag|}}}| |
||
{{#ifeq:{{{CTagmod}}}|OR| |
{{#ifeq:{{{CTagmod}}}|OR| |
||
{{#arraymap:{{{CTag}}}|,|x| |
[[uses color::{{#arraymap:{{{CTag}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}} |
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}} |
||
Line 19: | Line 20: | ||
{{#if:{{{STag|}}}| |
{{#if:{{{STag|}}}| |
||
{{#ifeq:{{{STagmod}}}|OR| |
{{#ifeq:{{{STagmod}}}|OR| |
||
{{#arraymap:{{{STag}}}|,|x| |
[[uses symbol::{{#arraymap:{{{STag}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}} |
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}} |
||
Line 26: | Line 27: | ||
{{#if:{{{type|}}}| |
{{#if:{{{type|}}}| |
||
{{#ifeq:{{{typemod}}}|OR| |
{{#ifeq:{{{typemod}}}|OR| |
||
{{#arraymap:{{{type}}}|,|x| |
[[is combat type::{{#arraymap:{{{type}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{type}}}|,|x|[[is combat type::x]]| }} |
{{#arraymap:{{{type}}}|,|x|[[is combat type::x]]| }} |
||
Line 32: | Line 33: | ||
}} |
}} |
||
⚫ | |||
{{#if:{{{hindrance|}}}| |
|||
{{#if:{{{minprotection|}}}|[[Min protection is number::{{#if:{{{minprotmod|}}}|{{{minprotmod}}}}}{{SProtAdapter|{{{minprotection}}}}}]]}} |
|||
{{#ifeq:{{{hindrancemod}}}|OR| |
|||
{{#if:{{{maxprotection|}}}|[[Max protection is number::{{#if:{{{maxprotmod|}}}|{{{maxprotmod}}}}}{{SProtAdapter|{{{maxprotection}}}}}]]}} |
|||
{{#arraymap:{{{hindrance}}}|,|x|[[hindrance is::x]]| OR }} |
|||
{{#if:{{{maxaprotection|}}}|[[Max arm protection is number::{{#if:{{{maxaprotmod|}}}|{{{maxaprotmod}}}}}{{SProtAdapter|{{{maxaprotection}}}}}]]}} |
|||
| |
|||
⚫ | |||
{{#arraymap:{{{hindrance}}}|,|x|[[hindrance is::x]]| }} |
|||
⚫ | |||
}} |
|||
⚫ | |||
}} |
|||
⚫ | |||
{{#if:{{{ |
{{#if:{{{impact|}}}|[[impact damage is number::{{#if:{{{imod|}}}|{{{imod}}}}}{{DamAdapter|{{{impact}}}}}]]}} |
||
{{#if:{{{ |
{{#if:{{{construction|}}}|[[construction is number::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{ConAdapter|{{{construction}}}}}]]}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{#if:{{{construction|}}}|[[construction is::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{{construction}}}]]}} |
|||
{{#if:{{{metal|}}}| |
{{#if:{{{metal|}}}| |
||
{{#ifeq:{{{metal}}}|either |
{{#ifeq:{{{metal}}}|either |
||
Line 53: | Line 48: | ||
|[[is metal::{{{metal}}}]]}} |
|[[is metal::{{{metal}}}]]}} |
||
}} |
}} |
||
{{#if:{{{weight|}}}|[[weight |
{{#if:{{{weight|}}}|[[weight of::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}} |
||
{{#if:{{{appcost|}}}|[[appraised cost is::{{#if:{{{apmod|}}}|{{{apmod}}}}}{{{appcost}}}]]}} |
{{#if:{{{appcost|}}}|[[appraised cost is::{{#if:{{{apmod|}}}|{{{apmod}}}}}{{{appcost}}}]]}} |
||
{{#if:{{{cost|}}}|[[shop cost is::{{#if:{{{costmod|}}}|{{{costmod}}}}}{{{cost}}}]]}} |
{{#if:{{{cost|}}}|[[shop cost is::{{#if:{{{costmod|}}}|{{{costmod}}}}}{{{cost}}}]]}} |
||
{{#if:{{{rarity|}}}|[[rarity is::{{{rarity}}}]]}} |
|||
{{#switch:{{{fest|}}}|yes=[[festival item::true]]|no=[[festival item::false]]|only not=[[festival item::!true]]}} |
|||
{{#if:{{{special|}}}| |
{{#if:{{{special|}}}| |
||
{{#ifeq:{{{spmod|}}}|OR| |
{{#ifeq:{{{spmod|}}}|OR| |
||
{{#arraymap:{{{special}}}|,|x| |
[[has item property::{{#arraymap:{{{special}}}|,|x|x| {{!}}{{!}} }}]] |
||
| |
| |
||
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]}} |
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]}} |
||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{potency|}}}|[[potency is::{{{potency}}}]]}} |
|||
{{#if:{{{complexity|}}}|[[complexity is::{{{complexity}}}]]}} |
|||
{{#if:{{{precision|}}}|[[precision is::{{{precision}}}]]}} |
|||
{{#if:{{{grade|}}}|[[grade is::{{#arraymap:{{{grade}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]}} |
|||
{{#if:{{{flare|}}}|[[flare is::{{#arraymap:{{{flare}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]}} |
|||
{{#if:{{{ebonus|}}}|[[ebonus is::{{#arraymap:{{{ebonus}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]}} |
|||
{{#if:{{{maxcharge|}}}|[[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}} |
{{#if:{{{maxcharge|}}}|[[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}} |
||
| ? |
| ?Is combat type=Type |
||
| {{#ifeq:{{{numbersonly|}}}|Yes|?Hindrance is number|?Hindrance is}}=Hindrance |
|||
| ?hindrance is |
|||
| {{#ifeq:{{{numbersonly|}}}|Yes|?Min protection is number|?Min protection is}}=Block Chance |
|||
| ?min protection is |
|||
| {{#ifeq:{{{numbersonly|}}}|Yes|?Max protection is number|?Max protection is}}=Held Protection |
|||
| ?max protection is |
|||
| {{#ifeq:{{{numbersonly|}}}|Yes|?Max arm protection is number|?Max arm protection is}}=Arm-Worn Protection |
|||
| ?Weight of |
| ?Weight of=Weight |
||
| {{#if:{{{grade|}}}|?Grade is=Grade}} |
|||
| {{#if:{{{flare|}}}|?Flare is=Flare}} |
|||
| {{#if:{{{ebonus|}}}|?Ebonus is=Enchant Bonus}} |
|||
| ?Source is=Sources |
|||
}} |
}} |
||
</includeonly> |
</includeonly> |
Latest revision as of 10:27, 16 July 2023
This is the ShieldQuery Template. It can only be used through the Shield Query