Template:WeaponProperties: Difference between revisions
Jump to navigation
Jump to search
(disabled range display for bolts, arrows and rocks) |
(easier formatting, missing tag for incomplete, and bugfixes) |
||
Line 1: | Line 1: | ||
<includeonly>|'''Type:'''||{{#If:{{{type|}}}|{{#switch:{{lc:{{{brawl}}}}}|y|yes=[[is combat type::{{ucfirst:{{lc:{{{type}}}}}}}]]{{#switch:{{lc:{{{type}}}}}|parry=& |
<includeonly>| '''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|}}} |  \   [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} |  \   [[is combat type::{{SkillCode| {{{type3}}} }}]]}} }} }} | [[missing::Infobox entry for weapon type|''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''}}}}}} |
{{#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]] | [[missing::Infobox entry on weapon range|''Unknown'']]}} }} }} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{range|}}}}}|ranged|{{!}}'''Ammo:'''{{!}}{{!}}{{#if:{{{ammocap|}}}|[[ammo capacity of::{{{ammocap}}}]]|''Unknown amount of''}} |
{{#ifeq: {{lc: {{{range|}}} }} | ranged | {{!}} '''Ammo:''' {{!}}{{!}} {{#if: {{{ammocap|}}} | [[ammo capacity of::{{{ammocap}}}]] | [[missing::Infobox entry on ammo capacity|''Unknown amount 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). | }} |
||
|- |
|- |
||
{{#switch: {{lc: {{{puncture}}} }} | n | -= | {{!}} '''Damage:''' {{!}}{{!}} {{ |
|||
{{#if:{{#ifeq:{{lc:{{{puncture}}}}}|n|1}}{{#ifeq:{{{puncture}}}|-|1}}||{{!}}'''Damage:'''{{!}}{{!}}{{#if:{{{puncture|}}}|{{#switch:{{lc:{{{puncturetype}}}}}|i|y|yes={{{puncture}}}|{{WeaponProcess|{{{puncture}}}|puncture damage is}}}}|''Unknown''}}{{#If:{{{puncture2|}}}| \ {{WeaponProcess|{{{puncture2}}}|puncture damage is}}}}{{#If:{{{puncture3|}}}| \ {{WeaponProcess|{{{puncture}}}|puncture damage is}}}} puncture damage{{#switch:{{lc:{{{puncturetype}}}}}|i|y|yes= increase}}<br/>{{#if:{{{slice|}}}|{{#switch:{{lc:{{{slicetype}}}}}|i|y|yes={{{slice}}}|{{WeaponProcess|{{{slice}}}|slice damage is}}}}|''Unknown''}}{{#if:{{{slice2|}}}| \ {{WeaponProcess|{{{slice2}}}|slice damage is}}}}{{#if:{{{slice3|}}}| \ {{WeaponProcess|{{{slice3}}}|slice damage is}}}} slice damage{{#switch:{{lc:{{{slicetype}}}}}|i|y|yes= increase}}<br/>{{#if:{{{impact|}}}|{{#switch:{{lc:{{{impacttype}}}}}|i|y|yes={{{impact}}}|{{WeaponProcess|{{{impact}}}|impact damage is}}}}|''Unknown''}}{{#if:{{{impact2|}}}| \ {{WeaponProcess|{{{impact2}}}|impact damage is}}}}{{#if:{{{impact3|}}}| \ {{WeaponProcess|{{{impact3}}}|impact damage is}}}} impact damage{{#switch:{{lc:{{{impacttype}}}}}|i|y|yes= increase}}}} |
|||
#if: {{{puncture|}}} | {{#switch: {{lc: {{{puncturetype}}} }} | i|y|yes= {{{puncture}}} | {{WeaponProcess| {{{puncture}}} | puncture damage is }} }} | [[missing::Infobox entry for puncture damage|''Unknown'']]}}{{ |
|||
#If: {{{puncture2|}}} |  \ {{WeaponProcess| {{{puncture2}}} | puncture damage is }} | {{#if: {{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for puncture damage2| ]] | }} }}{{ |
|||
#If: {{{puncture3|}}} |  \ {{WeaponProcess| {{{puncture}}} | puncture damage is }} | {{#if: {{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for puncture damage3| ]] | }} }} puncture damage{{ |
|||
#switch: {{lc: {{{puncturetype}}} }} |i|y|yes=  increase}} <br />{{ |
|||
#if: {{{slice|}}} | {{#switch: {{lc: {{{slicetype}}} }} |i|y|yes= {{{slice}}} | {{WeaponProcess| {{{slice}}} | slice damage is }} }} | [[missing::Infobox entry for slice damage|''Unknown'']] }}{{ |
|||
#if: {{{slice2|}}} |  \ {{WeaponProcess| {{{slice2}}} | slice damage is }} | {{#if: {{{puncture2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for slice damage2| ]] | }} }}{{ |
|||
#if: {{{slice3|}}} |  \ {{WeaponProcess| {{{slice3}}} | slice damage is }} | {{#if: {{{puncture3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for slice damage3| ]] | }} }} slice damage{{ |
|||
#switch: {{lc: {{{slicetype}}} }} |i|y|yes= increase}} <br /> {{ |
|||
#if: {{{impact|}}} | {{#switch: {{lc: {{{impacttype}}} }} |i|y|yes= {{{impact}}} | {{WeaponProcess| {{{impact}}} | impact damage is }} }} | [[missing::Infobox entry on impact damage|''Unknown'']] }}{{ |
|||
#if: {{{impact2|}}} |  \ {{WeaponProcess| {{{impact2}}} | impact damage is }} | {{#if: {{{slice2|}}}{{{puncture2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for impact damage2| ]] | }} }}{{ |
|||
#if: {{{impact3|}}} |  \ {{WeaponProcess| {{{impact3}}} | impact damage is }} | {{#if: {{{slice3|}}}{{{puncture3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for impact damage3| ]] | }} }} impact damage{{ |
|||
#switch: {{lc: {{{impacttype}}} }} |i|y|yes=  increase }} }} |
|||
|- |
|- |
||
{{#switch:{{lc:{{{brawl}}}}}|y|yes=|{{# |
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | {{!}} '''Balance:''' {{!}}{{!}} {{ |
||
#if: {{{balance|}}} | {{WeaponProcess| {{{balance}}} | balance is }} | [[missing::Infobox entry for balance|''Unknown'']] }}{{ |
|||
#If: {{{balance2|}}} |  \ {{WeaponProcess| {{{balance2}}} | balance is }} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for balance2 | ]] | }} }}{{ |
|||
#If: {{{balance3|}}} |  \ {{WeaponProcess| {{{balance3}}} | balance is }} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for balance3| ]] | }} }} }} }} |
|||
|- |
|- |
||
{{#switch:{{lc:{{{brawl}}}}}|y|yes=|{{# |
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | | {{!}} '''Suitedness:''' {{!}}{{!}} {{ |
||
#if: {{{suitedness|}}} | {{WeaponProcess| {{{suitedness}}} | suitedness is }} | [[missing::Infobox entry on suitedness|''Unknown'']] }}{{ |
|||
#If: {{{suitedness2|}}} |  \ {{WeaponProcess| {{{suitedness2}}} | suitedness is }} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}} | [[missing::Infobox entry for suitedness2| ]] | }} }}{{ |
|||
#If: {{{suitedness3|}}} |  \ {{WeaponProcess| {{{suitedness3}}} | suitedness is }} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{balance3|}}} | [[missing::Infobox entry for suitedness3| ]] | }} }} }} }} |
|||
|- |
|- |
||
|'''Construction:'''||{{#switch:{{lc:{{{construction}}}}}|extremely weak=[[construction is::0 - extremely weak|Extremely weak]]|flimsy=[[construction is::1 - flimsy|Flimsy]]|somewhat flimsy=[[construction is::2 - somewhat flimsy|Somewhat flimsy]]|average strength=[[construction is::3 - average strength|Average strength]]|fairly sturdy=[[construction is::4 - fairly sturdy|Fairly sturdy]]|moderately strong=[[construction is::5 - moderately strong|Moderately strong]]|well constructed=[[construction is::6 - well constructed|Well constructed]]|very strong=[[construction is::7 - very strong|Very strong]]|quite hard=[[construction is::8 - quite hard|Quite hard]]|incredibly hard=9 - incredibly hard|Incredibly hard]]|unbelievably strong=[[construction is::10 - unbelievably strong|Unbelievably strong]]|''Unknown''}} |
| '''Construction:''' || {{#switch: {{lc: {{{construction}}} }} | extremely weak= [[construction is::0 - extremely weak|Extremely weak]] | flimsy= [[construction is::1 - flimsy|Flimsy]] | somewhat flimsy= [[construction is::2 - somewhat flimsy|Somewhat flimsy]] | average strength= [[construction is::3 - average strength|Average strength]] | fairly sturdy= [[construction is::4 - fairly sturdy|Fairly sturdy]] | moderately strong= [[construction is::5 - moderately strong|Moderately strong]] | well constructed= [[construction is::6 - well constructed|Well constructed]] | very strong= [[construction is::7 - very strong|Very strong]] | quite hard= [[construction is::8 - quite hard|Quite hard]] | incredibly hard= [[construction is::9 - incredibly hard|Incredibly hard]] | unbelievably strong= [[construction is::10 - unbelievably strong|Unbelievably strong]] | [[missing::Infobox entry for construction|''Unknown'']]}} |
||
|- |
|- |
||
|'''Metal:'''||{{#switch:{{lc:{{{metal|}}}}}|yes|y=[[is metal::true|Yes]]|no|n=[[is metal::false|No]]|''Unknown''}} |
| '''Metal:''' || {{#switch: {{lc: {{{metal|}}} }} | yes|y= [[is metal::true|Yes]] | no|n= [[is metal::false|No]] | [[missing::Infobox entry for metal|''Unknown'']]}} |
||
|- |
|- |
||
|'''Weight:'''||{{#if:{{{weight|}}}|[[weight of::{{{weight}}}]] stones|''Unknown''}} |
| '''Weight:''' || {{#if: {{{weight|}}} | [[weight of::{{{weight}}}]] stones | [[missing::Infobox entry for weight|''Unknown'']]}} |
||
</includeonly><noinclude>A plug in for [[Template:Weapon|Weapon template]].{{cat|templates,Templates for Templates}}</noinclude> |
</includeonly><noinclude>A plug in for [[Template:Weapon|Weapon template]].{{cat|templates,Templates for Templates}}</noinclude> |
Revision as of 01:26, 14 January 2009
A plug in for Weapon template.