Template:WeaponQuery: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(more test)
(reverted)
Line 1: Line 1:
<noinclude>This is the WeaponQuery Template.
<noinclude>This is the WeaponQuery Template.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ask:[[Category:Weapons]]{{#if:{{{type|}}}|[[Is combat type::{{{type}}}]]}}
{{#ask:[[Category:Weapons]]
{{#if:{{{noun|}}}|{{#arraymap:{{{noun}}}|,|x|[[noun is::x]]| OR }}}}
{{#if:{{{MTag|}}}|
{{#ifeq:{{{MTagmod}}}|OR|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]| OR }}
|
{{#arraymap:{{{MTag}}}|,|x|[[uses material::x]]}}
}}
}}
{{#if:{{{CTag|}}}|
{{#ifeq:{{{CTagmod}}}|OR|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]| OR }}
|
{{#arraymap:{{{CTag}}}|,|x|[[uses color::x]]}}
}}
}}
{{#if:{{{STag|}}}|
{{#ifeq:{{{STagmod}}}|OR|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]| OR }}
|
{{#arraymap:{{{STag}}}|,|x|[[uses symbol::x]]}}
}}
}}
{{#if:{{{type|}}}|[[Is combat type::{{{type}}}]]}}
{{#if:{{{range|}}}|[[range is::{{{range}}}]]}}
{{#if:{{{ammo|}}}|[[has ammo type::{{{ammo}}}]]}}
{{#if:{{{ammocap|}}}|[[ammo capacity of::{{#if:{{{ammod|}}}|{{{ammod}}}}}{{{ammocap}}}]]}}
{{#if:{{{rangedRT|}}}|[[ranged RT is::{{#if:{{{rmod|}}}|{{{rmod}}}}}{{{rangedRT}}}]]}}
{{#if:{{{puncture|}}}|[[puncture damage is::{{#if:{{{pmod|}}}|{{{pmod}}}}}{{{puncture}}}]]}}
{{#if:{{{balance|}}}|[[balance is::{{#if:{{{bmod|}}}|{{{bmod}}}}}{{{balance}}}]]}}
{{#if:{{{slice|}}}|[[slice damage is::{{#if:{{{smod|}}}|{{{slmod}}}}}{{{slice}}}]]}}
{{#if:{{{suitedness|}}}|[[suitedness is::{{#if:{{{sumod|}}}|{{{sumod}}}}}{{{suitedness}}}]]}}
{{#if:{{{impact|}}}|[[impact damage is::{{#if:{{{imod|}}}|{{{imod}}}}}{{{impact}}}]]}}
{{#if:{{{construction|}}}|[[construction is::{{#if:{{{conmod|}}}|{{{conmod}}}}}{{{construction}}}]]}}
{{#if:{{{metal|}}}|[[is metal::{{{metal}}}]]}}
{{#if:{{{wearloc|}}}|[[worn in slot::{{{wearloc}}}]]}}
{{#if:{{{weight|}}}|[[weight is::{{#if:{{{wmod|}}}|{{{wmod}}}}}{{{weight}}}]]}}
{{#if:{{{appcost|}}}|[[appraised cost is::{{#if:{{{apmod|}}}|{{{apmod}}}}}{{{appcost}}}]]}}
{{#if:{{{cost|}}}|[[shop cost is::{{#if:{{{costmod|}}}|{{{costmod}}}}}{{{cost}}}]]}}
{{#switch:{{{fest|}}}|yes=[[festival item::true]]|[[festival item::!true]]}}
{{#if:{{{special|}}}|
{{#ifeq:{{{spmod|}}}|OR|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]| OR }}
|
{{#arraymap:{{{special}}}|,|x|[[has item property::x]]}}
}}
}}
{{#if:{{{maxcharge|}}}|[[holds mana::{{#if:{{{mmod|}}}|{{{mmod|}}}}}{{{maxcharge}}}]]}}
| ?Puncture damage is
| ?Puncture damage is
| ?Slice damage is
| ?Slice damage is

Revision as of 22:09, 9 May 2010

This is the WeaponQuery Template.