Template:WeaponProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(bugfix)
(disabled range display for bolts, arrows and rocks)
Line 1: Line 1:
<includeonly>|'''Type:'''||{{#If:{{{type|}}}|{{#switch:{{lc:{{{brawl}}}}}|y|yes=[[is combat type::{{ucfirst:{{lc:{{{type}}}}}}}]]{{#switch:{{lc:{{{type}}}}}|parry=&nbsp;stick|&nbsp;brawling weapon}}|{{#switch:{{lc:{{{type}}}}}|bolt|rock|arrow=[[is combat type::{{ucfirst:{{lc:{{{type}}}}}}}]]|[[is combat type::{{SkillCode|{{{type}}}}}]]{{#If:{{{type2|}}}|&nbsp;\&nbsp;[[is combat type::{{SkillCode|{{{type2}}}}}]]}}{{#If:{{{type3|}}}|&nbsp;\&nbsp;[[is combat type::{{SkillCode|{{{type3}}}}}]]}}}}}}|''Unknown''}}
<includeonly>|'''Type:'''||{{#If:{{{type|}}}|{{#switch:{{lc:{{{brawl}}}}}|y|yes=[[is combat type::{{ucfirst:{{lc:{{{type}}}}}}}]]{{#switch:{{lc:{{{type}}}}}|parry=&nbsp;stick|&nbsp;brawling weapon}}|{{#switch:{{lc:{{{type}}}}}|bolt|rock|arrow=[[is combat type::{{ucfirst:{{lc:{{{type}}}}}}}]]|[[is combat type::{{SkillCode|{{{type}}}}}]]{{#If:{{{type2|}}}|&nbsp;\&nbsp;[[is combat type::{{SkillCode|{{{type2}}}}}]]}}{{#If:{{{type3|}}}|&nbsp;\&nbsp;[[is combat type::{{SkillCode|{{{type3}}}}}]]}}}}}}|''Unknown''}}
|-
|-
{{#switch:{{{brawl}}}|y|yes=|{{!}}'''Range:'''{{!}}{{!}}{{#switch:{{lc:{{{range}}}}}|ranged=[[range is::ranged|Ranged]]|pole=[[range is::pole|Pole]]|melee=[[range is::melee|Melee]]|''Unknown''}}}}
{{#switch:{{{brawl}}}|y|yes=|{{#switch:{{{type}}}|bolt|arrow|rock=|{{!}}'''Range:'''{{!}}{{!}}{{#switch:{{lc:{{{range}}}}}|ranged=[[range is::ranged|Ranged]]|pole=[[range is::pole|Pole]]|melee=[[range is::melee|Melee]]|''Unknown''}}}}}}
|-
|-
{{#ifeq:{{lc:{{{range|}}}}}|ranged|{{!}}'''Ammo:'''{{!}}{{!}}{{#if:{{{ammocap|}}}|[[ammo capacity of::{{{ammocap}}}]]|''Unknown amount of''}} {{#if:{{{ammo|}}}|{{#switch:{{lc:{{{ammo}}}}}|bolt|bolts=[[has ammo type::bolt]]|rock|rocks=[[has ammo type::rock]]|arrow|arrows=[[has ammo type::arrow]]|''unknown type''}}(s).|''unknown type''}}}}
{{#ifeq:{{lc:{{{range|}}}}}|ranged|{{!}}'''Ammo:'''{{!}}{{!}}{{#if:{{{ammocap|}}}|[[ammo capacity of::{{{ammocap}}}]]|''Unknown amount of''}} {{#if:{{{ammo|}}}|{{#switch:{{lc:{{{ammo}}}}}|bolt|bolts=[[has ammo type::bolt]]|rock|rocks=[[has ammo type::rock]]|arrow|arrows=[[has ammo type::arrow]]|''unknown type''}}(s).|''unknown type''}}}}

Revision as of 21:06, 1 January 2009

A plug in for Weapon template.