Template:WeaponProperties: Difference between revisions
Jump to navigation
Jump to search
(bugfix) |
(adding in dart support) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{brawl}}} | y|yes= | {{#switch: {{{type}}} | bolt|arrow|rock= | {{!}} '''Range:''' {{!}}{{!}} colspan="{{{span}}}"{{!}} {{#switch:{{lc:{{{range}}} }} | ranged= [[range is::ranged|Ranged]] | pole= [[range is::pole|Pole]] | melee= [[range is::melee|Melee]] | [[missing::Infobox entry on weapon range|''Unknown'']]}} }} }} |
<includeonly>{{#switch: {{{brawl}}} | y|yes= | {{#switch: {{{type}}} | bolt|arrow|rock|dart= | {{!}} '''Range:''' {{!}}{{!}} colspan="{{{span}}}"{{!}} {{#switch:{{lc:{{{range}}} }} | ranged= [[range is::ranged|Ranged]] | pole= [[range is::pole|Pole]] | melee= [[range is::melee|Melee]] | [[missing::Infobox entry on weapon range|''Unknown'']]}} }} }} |
||
|- |
|- |
||
{{#ifeq: {{lc: {{{range|}}} }} | ranged | {{!}} '''Ammo:''' {{!}}{{!}} colspan="{{{span}}}"{{!}} {{#if: {{{ammocap|}}} | [[ammo capacity of::{{{ammocap}}}]] | [[missing::Infobox entry on ammo capacity|''Unknown number of'']]}} {{#switch: {{lc: {{{ammo}}} }} | bolt|bolts= [[has ammo type::bolt]] | rock|rocks= [[has ammo type::rock]] | arrow|arrows= [[has ammo type::arrow]] | [[missing::Infobox entry on ammo type|''unknown type'']]}}(s). | }} |
{{#ifeq: {{lc: {{{range|}}} }} | ranged | {{!}} '''Ammo:''' {{!}}{{!}} colspan="{{{span}}}"{{!}} {{#if: {{{ammocap|}}} | [[ammo capacity of::{{{ammocap}}}]] | [[missing::Infobox entry on ammo capacity|''Unknown number of'']]}} {{#switch: {{lc: {{{ammo}}} }} | bolt|bolts= [[has ammo type::bolt]] | rock|rocks= [[has ammo type::rock]] | arrow|arrows= [[has ammo type::arrow]] | dart|darts= [[has ammo type::dart]] |[[missing::Infobox entry on ammo type|''unknown type'']]}}(s). | }} |
||
|- |
|- |
||
| '''Type:''' || {{#If:{{{type|}}} | {{#switch: {{lc: {{{brawl}}} }} | y|yes= [[is combat type::{{ucfirst: {{lc: {{{type}}} }} }}]]{{#switch: {{lc: {{{type}}} }} | parry=  stick |  brawling weapon}} | {{#switch:{{lc:{{{type}}} }} | bolt|rock|arrow= [[is combat type::{{ucfirst: {{lc: {{{type}}} }} }}]] | [[is combat type::{{SkillCode| {{{type}}} }}]]{{#If: {{{type2|}}} | {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{!}}{{!}} |  \  }} [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | {{!}}{{!}} |  \  }} [[is combat type::{{SkillCode| {{{type3}}} }}]]}} }} }} | [[missing::Infobox entry for weapon type|''Unknown'']]}}{{#if:{{IfMatch2|{{{type|}}},{{{type2|}}},{{{type3|}}}|hands|feet|elbows|knees|parry}}|<!--[[is combat type::Brawling| ]]-->|}}{{#Ifeq:{{{range|}}}|ranged|{{#If:{{{rangedRT|}}}| ({{#expr:{{{rangedRT}}}-1}}/[[ranged RT is::{{{rangedRT}}}]] RT)| [[missing::Infobox entry on ranged roundtime| ]](Unknown RT)|}}}} |
| '''Type:''' || {{#If:{{{type|}}} | {{#switch: {{lc: {{{brawl}}} }} | y|yes= [[is combat type::{{ucfirst: {{lc: {{{type}}} }} }}]]{{#switch: {{lc: {{{type}}} }} | parry=  stick |  brawling weapon}} | {{#switch:{{lc:{{{type}}} }} | bolt|rock|arrow|dart= [[is combat type::{{ucfirst: {{lc: {{{type}}} }} }}]] | [[is combat type::{{SkillCode| {{{type}}} }}]]{{#If: {{{type2|}}} | {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{!}}{{!}} |  \  }} [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | {{!}}{{!}} |  \  }} [[is combat type::{{SkillCode| {{{type3}}} }}]]}} }} }} | [[missing::Infobox entry for weapon type|''Unknown'']]}}{{#if:{{IfMatch2|{{{type|}}},{{{type2|}}},{{{type3|}}}|hands|feet|elbows|knees|parry}}|<!--[[is combat type::Brawling| ]]-->|}}{{#Ifeq:{{{range|}}}|ranged|{{#If:{{{rangedRT|}}}| ({{#expr:{{{rangedRT}}}-1}}/[[ranged RT is::{{{rangedRT}}}]] RT)| [[missing::Infobox entry on ranged roundtime| ]](Unknown RT)|}}}} |
||
|- |
|- |
||
{{#switch: {{lc: {{{type}}} }} |sb|lob|cb={{!}} '''Draw Strength:''' {{!}}{{!}} {{ |
{{#switch: {{lc: {{{type}}} }} |sb|lob|cb={{!}} '''Draw Strength:''' {{!}}{{!}} {{ |
Revision as of 02:35, 13 August 2016
A plug in for Weapon template.