Template:WeaponQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Created page with '<noinclude>This is the WeaponQuery Template. </noinclude><includeonly> {{#ask:Category:Weapons {{#if:{{{noun|}}}|[[noun is::{{{noun}}}]]}} {{#if:{{{MTag|}}}|[[uses material::...')
 
No edit summary
 
(55 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This is the WeaponQuery Template.
<noinclude>This is the WeaponQuery Template. It can only be used through the [[Special:RunQuery/WeaponQuery|Weapon Query]]{{Cat|Templates,Search Templates}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask:[[Category:Weapons]]
{{#ask:[[Category:Weapons]]
{{#if:{{{noun|}}}|[[noun is::{{{noun}}}]]}}
{{#if:{{{noun|}}}|
{{#if:{{{MTag|}}}|[[uses material::{{{MTag}}}]]}}
[[noun is::{{#arraymap:{{{noun}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]}}
{{#if:{{{CTag|}}}|[[uses color::{{{CTag}}}]]}}
{{#if:{{{MTag|}}}|
{{#if:{{{STag|}}}|[[uses symbol::{{{STag}}}]]}}
{{#ifeq:{{{MTagmod}}}|OR|
{{#if:{{[type|}}}|[[Is combat type::{{{type}}}]]}}
[[uses material::{{#arraymap:{{{MTag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{MTag}}}|,|@@@@|[[uses material::@@@@]]|}}
}}
}}
{{#if:{{{CTag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
[[uses color::{{#arraymap:{{{CTag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{CTag}}}|,|@@@@|[[uses color::@@@@]]|}}
}}
}}
{{#if:{{{STag|}}}|
{{#ifeq:{{{STagmod}}}|OR|
[[uses symbol::{{#arraymap:{{{STag}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{STag}}}|,|@@@@|[[uses symbol::@@@@]]|}}
}}
}}
{{#if:{{{type|}}}|
{{#ifeq:{{{typemod}}}|OR|
[[Is combat type::{{#arraymap:{{{type}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
{{#arraymap:{{{type}}}|,|@@@@|[[Is combat type::@@@@]]|}}
}}
}}
{{#if:{{{range|}}}|[[range is::{{{range}}}]]}}
{{#if:{{{range|}}}|[[range is::{{{range}}}]]}}
{{#if:{{{ammo|}}}|[[has ammo type::{{{ammo}}}]]}}
{{#if:{{{ammo|}}}|[[has ammo type::{{{ammo}}}]]}}
{{#if:{{{ammocap|}}}|[[ammo capacity of::{{#if:{{{ammod|}}}|{{{ammod}}}}}{{{ammocap}}}]]}}
{{#if:{{{ammocap|}}}|[[ammo capacity of::{{#if:{{{ammod|}}}|{{{ammod}}}}}{{{ammocap}}}]]}}
{{#if:{{{rangedRT|}}}|[[ranged RT is::{{#if:{{{rmod|}}}|{{{rmod}}}}}{{{rangedRT}}}]]}}
{{#if:{{{rangedRT|}}}|[[ranged RT is::{{#if:{{{rmod|}}}|{{{rmod}}}}}{{{rangedRT}}}]]}}
{{#if:{{{puncture|}}}|[[puncture damage is::{{#if:{{{pmod|}}}|{{{pmod}}}}}{{{puncture}}}]]}}
{{#if:{{{puncture|}}}|[[puncture damage is number::{{#if:{{{pmod|}}}|{{{pmod}}}}}{{DamAdapter|{{{puncture}}}}}]]}}
{{#if:{{{balance|}}}|[[balance is::{{#if:{{{bmod|}}}|{{{bmod}}}}}{{{balance}}}]]}}
{{#if:{{{foi|}}}|[[foi is number::{{#if:{{{foimod|}}}|{{{foimod}}}}}{{SBAdapter|{{{foi}}}}}]]}}
{{#if:{{{slice|}}}|[[slice damage is::{{#if:{{{smod|}}}|{{{slmod}}}}}{{{slice}}}]]}}
{{#if:{{{slice|}}}|[[slice damage is number::{{#if:{{{slmod|}}}|{{{slmod}}}}}{{DamAdapter|{{{slice}}}}}]]}}
{{#if:{{{suitedness|}}}|[[suitedness is::{{#if:{{{sumod|}}}|{{{sumod}}}}}{{{suitedness}}}]]}}
{{#if:{{{balance|}}}|[[balance is number::{{#if:{{{bmod|}}}|{{{bmod}}}}}{{SBAdapter|{{{balance}}}}}]]}}
{{#if:{{{impact|}}}|[[impact damage is::{{#if:{{{imod|}}}|{{{imod}}}}}{{{impact}}}]]}}
{{#if:{{{impact|}}}|[[impact damage is number::{{#if:{{{imod|}}}|{{{imod}}}}}{{DamAdapter|{{{impact}}}}}]]}}
{{#if:{{{construction|}}}|[[construction is::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{{construction}}}]]}}
{{#if:{{{suitedness|}}}|[[suitedness is number::{{#if:{{{sumod|}}}|{{{sumod}}}}}{{SBAdapter|{{{suitedness}}}}}]]}}
{{#if:{{{metal|}}}|[[is metal::{{{metal}}}]]}}
{{#if:{{{construction|}}}|[[construction is number::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{ConAdapter|{{{construction}}}}}]]}}
{{#if:{{{metal|}}}|
{{#ifeq:{{{metal}}}|either
|
|[[is metal::{{{metal}}}]]}}
}}
{{#if:{{{wearloc|}}}|[[worn in slot::{{{wearloc}}}]]}}
{{#if:{{{wearloc|}}}|[[worn in slot::{{{wearloc}}}]]}}
{{#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}}}]]}}
{{#if:{{{special|}}}|
{{#if:{{{special|}}}|
{{#ifeq:{{{spmod|}}}|AND|
{{#ifeq:{{{spmod|}}}|OR|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]}}
[[has item property::{{#arraymap:{{{special}}}|,|@@@@|@@@@| {{!}}{{!}} }}]]
|
|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]| OR }}
{{#arraymap:{{{special}}}|,|@@@@|[[has item property::@@@@]]}}
}}
}}
}}
}}
{{#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
| ?Puncture damage is
| {{#ifeq:{{{numbersonly|}}}|Yes|?Puncture damage is number|?Puncture damage is}}=Puncture
| ?Slice damage is
| {{#ifeq:{{{numbersonly|}}}|Yes|?Slice damage is number|?Slice damage is}}=Slice
| ?Impact damage is
| {{#ifeq:{{{numbersonly|}}}|Yes|?Impact damage is number|?Impact damage is}}=Impact
| ?Balance is
| {{#ifeq:{{{numbersonly|}}}|Yes|?FOI is number|?FOI is}}=FOI
| ?Suitability is
| {{#ifeq:{{{numbersonly|}}}|Yes|?Balance is number|?Balance is}}=Balance
| ?Weight of
| {{#ifeq:{{{numbersonly|}}}|Yes|?Suitedness is number|?Suitedness is}}=Suitedness
| ?Weight of=Weight
| {{#if:{{{rangedRT|}}}|?Ranged RT is=Ranged RT}}
| {{#if:{{{ammocap|}}}|?Ammo capacity of=Ammo Capacity}}
| {{#if:{{{grade|}}}|?Grade is=Grade}}
| {{#if:{{{flare|}}}|?Flare is=Flare}}
| {{#if:{{{ebonus|}}}|?Ebonus is=Enchant Bonus}}
| ?Source is=Sources
}}
}}
{{Cat|Templates}}
</includeonly>
</includeonly>

Latest revision as of 10:22, 16 July 2023

This is the WeaponQuery Template. It can only be used through the Weapon Query