Template:WeaponProperties: Difference between revisions

From Elanthipedia
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=&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= &#32;stick | &#32;brawling weapon}} | {{#switch:{{lc:{{{type}}} }} | bolt|rock|arrow= [[is combat type::{{ucfirst: {{lc: {{{type}}} }} }}]] | [[is combat type::{{SkillCode| {{{type}}} }}]]{{#If: {{{type2|}}} | &#32;\ &#32; [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} | &#32;\ &#32; [[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''}} {{#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}}}]] | [[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|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{puncture2}}}|puncture damage is}}}}{{#If:{{{puncture3|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{puncture}}}|puncture damage is}}}} puncture damage{{#switch:{{lc:{{{puncturetype}}}}}|i|y|yes=&nbsp;increase}}<br/>{{#if:{{{slice|}}}|{{#switch:{{lc:{{{slicetype}}}}}|i|y|yes={{{slice}}}|{{WeaponProcess|{{{slice}}}|slice damage is}}}}|''Unknown''}}{{#if:{{{slice2|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{slice2}}}|slice damage is}}}}{{#if:{{{slice3|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{slice3}}}|slice damage is}}}} slice damage{{#switch:{{lc:{{{slicetype}}}}}|i|y|yes=&nbsp;increase}}<br/>{{#if:{{{impact|}}}|{{#switch:{{lc:{{{impacttype}}}}}|i|y|yes={{{impact}}}|{{WeaponProcess|{{{impact}}}|impact damage is}}}}|''Unknown''}}{{#if:{{{impact2|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{impact2}}}|impact damage is}}}}{{#if:{{{impact3|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{impact3}}}|impact damage is}}}} impact damage{{#switch:{{lc:{{{impacttype}}}}}|i|y|yes=&nbsp;increase}}}}
#if: {{{puncture|}}} | {{#switch: {{lc: {{{puncturetype}}} }} | i|y|yes= {{{puncture}}} | {{WeaponProcess| {{{puncture}}} | puncture damage is }} }} | [[missing::Infobox entry for puncture damage|''Unknown'']]}}{{
#If: {{{puncture2|}}} | &#32;\ {{WeaponProcess| {{{puncture2}}} | puncture damage is }} | {{#if: {{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for puncture damage2| ]] | }} }}{{
#If: {{{puncture3|}}} | &#32;\ {{WeaponProcess| {{{puncture}}} | puncture damage is }} | {{#if: {{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for puncture damage3| ]] | }} }} puncture damage{{
#switch: {{lc: {{{puncturetype}}} }} |i|y|yes= &#32;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|}}} | &#32;\ {{WeaponProcess| {{{slice2}}} | slice damage is }} | {{#if: {{{puncture2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for slice damage2| ]] | }} }}{{
#if: {{{slice3|}}} | &#32;\ {{WeaponProcess| {{{slice3}}} | slice damage is }} | {{#if: {{{puncture3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for slice damage3| ]] | }} }} slice damage{{
#switch: {{lc: {{{slicetype}}} }} |i|y|yes=&#32;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|}}} | &#32;\ {{WeaponProcess| {{{impact2}}} | impact damage is }} | {{#if: {{{slice2|}}}{{{puncture2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for impact damage2| ]] | }} }}{{
#if: {{{impact3|}}} | &#32;\ {{WeaponProcess| {{{impact3}}} | impact damage is }} | {{#if: {{{slice3|}}}{{{puncture3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for impact damage3| ]] | }} }} impact damage{{
#switch: {{lc: {{{impacttype}}} }} |i|y|yes= &#32;increase }} }}
|-
|-
{{#switch:{{lc:{{{brawl}}}}}|y|yes=|{{#if:{{#ifeq:{{lc:{{{balance}}}}}|n|1}}{{#ifeq:{{{balance}}}|-|1}}||{{!}}'''Balance:'''{{!}}{{!}}{{#if:{{{balance|}}}|{{WeaponProcess|{{{balance}}}|balance is}}|''Unknown''}}{{#If:{{{balance2|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{balance2}}}|balance is}}}}{{#If:{{{balance3|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{balance3}}}|balance is}}}}}}}}
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | {{!}} '''Balance:''' {{!}}{{!}} {{
#if: {{{balance|}}} | {{WeaponProcess| {{{balance}}} | balance is }} | [[missing::Infobox entry for balance|''Unknown'']] }}{{
#If: {{{balance2|}}} | &#32;\ {{WeaponProcess| {{{balance2}}} | balance is }} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for balance2 | ]] | }} }}{{
#If: {{{balance3|}}} | &#32;\ {{WeaponProcess| {{{balance3}}} | balance is }} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for balance3| ]] | }} }} }} }}
|-
|-
{{#switch:{{lc:{{{brawl}}}}}|y|yes=|{{#if:{{#ifeq:{{lc:{{{balance}}}}}|n|1}}{{#ifeq:{{{balance}}}|-|1}}||{{!}}'''Suitedness:'''{{!}}{{!}}{{#if:{{{suitedness|}}}|{{WeaponProcess|{{{suitedness}}}|suitedness is}}|''Unknown''}}{{#If:{{{suitedness2|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{suitedness2}}}|suitedness is}}}}{{#If:{{{suitedness3|}}}|&nbsp;\&nbsp;{{WeaponProcess|{{{suitedness3}}}|suitedness is}}}}}}}}
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | | {{!}} '''Suitedness:''' {{!}}{{!}} {{
#if: {{{suitedness|}}} | {{WeaponProcess| {{{suitedness}}} | suitedness is }} | [[missing::Infobox entry on suitedness|''Unknown'']] }}{{
#If: {{{suitedness2|}}} | &#32;\ {{WeaponProcess| {{{suitedness2}}} | suitedness is }} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}} | [[missing::Infobox entry for suitedness2| ]] | }} }}{{
#If: {{{suitedness3|}}} | &#32;\ {{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 02:26, 14 January 2009

A plug in for Weapon template.