Template:ShieldQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(11 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:Shields]]
{{#ask:[[Category:Shields]]
{{#if:{{{noun|}}}|{{#arraymap:{{{noun}}}|,|x|[[noun is::x]]| OR }}}}
{{#if:{{{noun|}}}|
[[noun is::{{#arraymap:{{{noun}}}|,|x|x| {{!}}{{!}} }}]]}}
{{#if:{{{MTag|}}}|
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#ifeq:{{{MTagmod}}}|OR|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR }}
[[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::x]]| OR }}
[[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::x]]| OR }}
[[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::x]]| OR }}
[[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|}}}|[[hindrance is::{{#if:{{{hindmod|}}}|{{{hindmod}}}}}{{{hindrance}}}]]}}
{{#if:{{{hindrance|}}}|[[hindrance is number::{{#if:{{{hindmod|}}}|{{{hindmod}}}}}{{HindAdapter|{{{hindrance}}}}}]]}}
{{#if:{{{minprotection|}}}|[[Min protection is::{{#if:{{{minprotmod|}}}|{{{minprotmod}}}}}{{{minprotection}}}]]}}
{{#if:{{{minprotection|}}}|[[Min protection is number::{{#if:{{{minprotmod|}}}|{{{minprotmod}}}}}{{SProtAdapter|{{{minprotection}}}}}]]}}
{{#if:{{{maxprotection|}}}|[[Max protection is::{{#if:{{{maxprotmod|}}}|{{{maxprotmod}}}}}{{{maxprotection}}}]]}}
{{#if:{{{maxprotection|}}}|[[Max protection is number::{{#if:{{{maxprotmod|}}}|{{{maxprotmod}}}}}{{SProtAdapter|{{{maxprotection}}}}}]]}}
{{#if:{{{puncture|}}}|[[puncture damage is::{{#if:{{{pmod|}}}|{{{pmod}}}}}{{{puncture}}}]]}}
{{#if:{{{maxaprotection|}}}|[[Max arm protection is number::{{#if:{{{maxaprotmod|}}}|{{{maxaprotmod}}}}}{{SProtAdapter|{{{maxaprotection}}}}}]]}}
{{#if:{{{balance|}}}|[[balance is::{{#if:{{{bmod|}}}|{{{bmod}}}}}{{{balance}}}]]}}
{{#if:{{{puncture|}}}|[[puncture damage is number::{{#if:{{{pmod|}}}|{{{pmod}}}}}{{DamAdapter|{{{puncture}}}}}]]}}
{{#if:{{{slice|}}}|[[slice damage is::{{#if:{{{smod|}}}|{{{slmod}}}}}{{{slice}}}]]}}
{{#if:{{{balance|}}}|[[balance is number::{{#if:{{{bmod|}}}|{{{bmod}}}}}{{SBAdapter|{{{balance}}}}}]]}}
{{#if:{{{suitedness|}}}|[[suitedness is::{{#if:{{{sumod|}}}|{{{sumod}}}}}{{{suitedness}}}]]}}
{{#if:{{{slice|}}}|[[slice damage is number::{{#if:{{{smod|}}}|{{{slmod}}}}}{{DamAdapter|{{{slice}}}}}]]}}
{{#if:{{{impact|}}}|[[impact damage is::{{#if:{{{imod|}}}|{{{imod}}}}}{{{impact}}}]]}}
{{#if:{{{suitedness|}}}|[[suitedness is number::{{#if:{{{sumod|}}}|{{{sumod}}}}}{{SBAdapter|{{{suitedness}}}}}]]}}
{{#if:{{{construction|}}}|[[construction is::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{{construction}}}]]}}
{{#if:{{{impact|}}}|[[impact damage is number::{{#if:{{{imod|}}}|{{{imod}}}}}{{DamAdapter|{{{impact}}}}}]]}}
{{#if:{{{construction|}}}|[[construction is number::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{ConAdapter|{{{construction}}}}}]]}}
{{#if:{{{metal|}}}|
{{#if:{{{metal|}}}|
{{#ifeq:{{{metal}}}|either
{{#ifeq:{{{metal}}}|either
Line 46: Line 48:
|[[is metal::{{{metal}}}]]}}
|[[is metal::{{{metal}}}]]}}
}}
}}
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{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::x]]| OR }}
[[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
| ?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