Template:ShieldQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 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]]
Line 33: 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 50: Line 51:
{{#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=[[rare item::true]]|no=[[rare item::false]]|only not=[[rare item::!true]]}}
{{#if:{{{special|}}}|
{{#if:{{{special|}}}|
{{#ifeq:{{{spmod|}}}|OR|
{{#ifeq:{{{spmod|}}}|OR|
Line 58: Line 59:
}}
}}
}}
}}
{{#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