Template:WeaponProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(update for FOI)
(simplified template... if I didn't break it)
Line 1: Line 1:
<includeonly>{{#switch: {{{brawl}}} | y|yes= | {{#switch: {{{type}}} | bolt|arrow|rock= | {{!}} '''Range:''' {{!}}{{!}} {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#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= | {{!}} '''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:''' {{!}}{{!}} {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#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]] | [[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= &#32;stick | &#32;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|}}} | {{!}}{{!}} | &#32;\ &#32;}} [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | {{!}}{{!}} | &#32;\ &#32;}} [[is combat type::{{SkillCode| {{{type3}}} }}]]}} }} }} | [[missing::Infobox entry for weapon type|''Unknown'']]}}{{#Ifeq:{{{range|}}}|ranged|{{#If:{{{rangedRT|}}}|&#32;({{#expr:{{{rangedRT}}}-1}}/[[ranged RT is::{{{rangedRT}}}]] RT)|&#32;[[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= &#32;stick | &#32;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|}}} | {{!}}{{!}} | &#32;\ &#32;}} [[is combat type::{{SkillCode| {{{type2}}} }}]]}}{{#If: {{{type3|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | {{!}}{{!}} | &#32;\ &#32;}} [[is combat type::{{SkillCode| {{{type3}}} }}]]}} }} }} | [[missing::Infobox entry for weapon type|''Unknown'']]}}{{#Ifeq:{{{range|}}}|ranged|{{#If:{{{rangedRT|}}}|&#32;({{#expr:{{{rangedRT}}}-1}}/[[ranged RT is::{{{rangedRT}}}]] RT)|&#32;[[missing::Infobox entry on ranged roundtime| ]](Unknown RT)|}}}}
Line 7: Line 7:
{{#switch: {{lc: {{{puncture}}} }} | n | -= | {{!}} '''Puncture:''' {{!}}{{!}} {{
{{#switch: {{lc: {{{puncture}}} }} | n | -= | {{!}} '''Puncture:''' {{!}}{{!}} {{
#if: {{{puncture|}}} | {{#switch: {{{brawl}}} | y|yes= {{{puncture}}} | {{WeaponProcess| {{{puncture}}} | puncture damage is}} }} | [[missing::Infobox entry for puncture damage|''Unknown'']]}}{{
#if: {{{puncture|}}} | {{#switch: {{{brawl}}} | 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|}}}{{{foi2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for puncture damage2| ]] | }} }}{{
#If: {{{puncture2|}}} | {{!}}{{!}} {{WeaponProcess| {{{puncture2}}} | puncture damage is}} | {{#switch: {{{span}}} | 2|3=[[missing::Infobox entry for puncture damage2|''Unknown'']] | }} }}{{
#If: {{{puncture3|}}} | {{!}}{{!}} {{WeaponProcess| {{{puncture}}} | puncture damage is}} | {{#if: {{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for puncture damage3| ]] | }} }} {{#switch:{{lc:{{{puncturetype}}}}} | i|y|yes=(increase) }}
#If: {{{puncture3|}}} | {{!}}{{!}} {{WeaponProcess| {{{puncture}}} | puncture damage is}} | {{#switch: {{{span}}} | 3=[[missing::Infobox entry for puncture damage3|''Unknown'']] | }} }} {{#switch:{{lc:{{{puncturetype}}}}} | i|y|yes=(increase) }}
{{!}}-
{{!}}-
{{!}} '''Slice:''' {{!}}{{!}} {{
{{!}} '''Slice:''' {{!}}{{!}} {{
#if: {{{slice|}}} | {{#switch: {{{brawl}}} | y|yes= {{{slice}}} | {{WeaponProcess| {{{slice}}} | slice damage is}} }} | [[missing::Infobox entry for slice damage|''Unknown'']] }}{{
#if: {{{slice|}}} | {{#switch: {{{brawl}}} | 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|}}}{{{foi2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for slice damage2| ]] | }} }}{{
#if: {{{slice2|}}} | {{!}}{{!}} {{WeaponProcess| {{{slice2}}} | slice damage is}} | {{#switch: {{{span}}} | 2|3=[[missing::Infobox entry for slice damage2|''Unknown'']] | }} }}{{
#if: {{{slice3|}}} | {{!}}{{!}} {{WeaponProcess| {{{slice3}}} | slice damage is}} | {{#if: {{{puncture3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for slice damage3| ]] | }} }} {{#switch:{{lc:{{{slicetype}}}}} | i|y|yes=(increase) }}
#if: {{{slice3|}}} | {{!}}{{!}} {{WeaponProcess| {{{slice3}}} | slice damage is}} | {{#switch: {{{span}}} | 3=[[missing::Infobox entry for slice damage3|''Unknown'']] | }} }} {{#switch:{{lc:{{{slicetype}}}}} | i|y|yes=(increase) }}
{{!}}-
{{!}}-
{{!}} '''Impact:''' {{!}}{{!}} {{
{{!}} '''Impact:''' {{!}}{{!}} {{
#if: {{{impact|}}} | {{#switch: {{{brawl}}} | y|yes= {{{impact}}} | {{WeaponProcess| {{{impact}}} | impact damage is}} }} | [[missing::Infobox entry on impact damage|''Unknown'']] }}{{
#if: {{{impact|}}} | {{#switch: {{{brawl}}} | 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|}}}{{{foi2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for impact damage2| ]] | }} }}{{
#if: {{{impact2|}}} | {{!}}{{!}} {{WeaponProcess| {{{impact2}}} | impact damage is}} | {{#switch: {{{span}}} | 2|3=[[missing::Infobox entry for impact damage2|''Unknown'']] | }} }}{{
#if: {{{impact3|}}} | {{!}}{{!}} {{WeaponProcess| {{{impact3}}} | impact damage is }} | {{#if: {{{slice3|}}}{{{puncture3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for impact damage3| ]] | }} }} }} {{#switch:{{lc:{{{impacttype}}}}} | i|y|yes=(increase) }}
#if: {{{impact3|}}} | {{!}}{{!}} {{WeaponProcess| {{{impact3}}} | impact damage is }} | {{#switch: {{{span}}} | 3=[[missing::Infobox entry for impact damage3|''Unknown'']] | }} }} }} {{#switch:{{lc:{{{impacttype}}}}} | i|y|yes=(increase) }}
|-
|-
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{foi}}} }} | n | -= | | {{!}} '''Force of Impact:''' {{!}}{{!}} {{
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{foi}}} }} | n | -= | | {{!}} '''Force of Impact:''' {{!}}{{!}} {{
#if: {{{foi|}}} | {{WeaponProcess| {{{foi}}} | foi is}} | [[missing::Infobox entry on force of impact|''Unknown'']] }}{{
#if: {{{foi|}}} | {{WeaponProcess| {{{foi}}} | foi is}} | [[missing::Infobox entry on force of impact|''Unknown'']] }}{{
#If: {{{foi2|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi2}}} | foi is}} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for force of impact2| ]] | }} }}{{
#If: {{{foi2|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi2}}} | foi is}} | {{#switch: {{{span}}} | 2|3=[[missing::Infobox entry for force of impact2|''Unknown'']] | }} }}{{
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi3}}} | foi is }} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for force of impact3| ]] | }} }} }} }}
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi3}}} | foi is }} | {{#switch: {{{span}}} | 3=[[missing::Infobox entry for force of impact3|''Unknown'']] | }} }} }} }}
|-
|-
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | {{!}} '''Balance:''' {{!}}{{!}} {{
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | {{!}} '''Balance:''' {{!}}{{!}} {{
#if: {{{balance|}}} | {{WeaponProcess| {{{balance}}} | balance is}} | [[missing::Infobox entry for balance|''Unknown'']] }}{{
#if: {{{balance|}}} | {{WeaponProcess| {{{balance}}} | balance is}} | [[missing::Infobox entry for balance|''Unknown'']] }}{{
#If: {{{balance2|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance2}}} | balance is}} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{suitedness2|}}} | [[missing::Infobox entry for balance2 | ]] | }} }}{{
#If: {{{balance2|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance2}}} | balance is}} | {{#switch: {{{span}}} |2|3=[[missing::Infobox entry for balance2 |''Unknown'']] | }} }}{{
#If: {{{balance3|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance3}}} | balance is}} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{suitedness3|}}} | [[missing::Infobox entry for balance3| ]] | }} }} }} }}
#If: {{{balance3|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance3}}} | balance is}} | {{#switch: {{{span}}} |3= [[missing::Infobox entry for balance3|''Unknown'']] | }} }} }} }}
|-
|-
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | | {{!}} '''Suitedness:''' {{!}}{{!}} {{
{{#switch: {{lc: {{{brawl}}} }} | y|yes= | {{#switch: {{lc: {{{balance}}} }} | n | -= | | {{!}} '''Suitedness:''' {{!}}{{!}} {{
#if: {{{suitedness|}}} | {{WeaponProcess| {{{suitedness}}} | suitedness is}} | [[missing::Infobox entry on suitedness|''Unknown'']] }}{{
#if: {{{suitedness|}}} | {{WeaponProcess| {{{suitedness}}} | suitedness is}} | [[missing::Infobox entry on suitedness|''Unknown'']] }}{{
#If: {{{suitedness2|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness2}}} | suitedness is}} | {{#if: {{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}} | [[missing::Infobox entry for suitedness2| ]] | }} }}{{
#If: {{{suitedness2|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness2}}} | suitedness is}} | {{#switch: {{{span}}}|2|3=[[missing::Infobox entry for suitedness2|''Unknown'']] | }}}} {{
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness3}}} | suitedness is }} | {{#if: {{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}} | [[missing::Infobox entry for suitedness3| ]] | }} }} }} }}
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness3}}} | suitedness is }} | {{#switch: {{{span}}}|3=[[missing::Infobox entry for suitedness3|''Unknown'']] | }} }} }} }}
|-
|-
| '''Construction:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{ConstructionProcess|{{{construction}}}}}
| '''Construction:''' || colspan="{{{span}}}"{{!}}{{ConstructionProcess|{{{construction}}}}}
|-
|-
| '''Metal:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#switch: {{lc: {{{metal|}}} }} | yes|y= [[is metal::true|Yes]] | no|n= [[is metal::false|No]] | [[missing::Infobox entry for metal|''Unknown'']]}}
| '''Metal:''' || colspan="{{{span}}}"{{!}} {{#switch: {{lc: {{{metal|}}} }} | yes|y= [[is metal::true|Yes]] | no|n= [[is metal::false|No]] | [[missing::Infobox entry for metal|''Unknown'']]}}
|-
|-
{{!}} '''Weight:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{foi2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{foi3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#if: {{{weight|}}} | {{#arraymap:{{{weight}}}|,|x|[[weight of::x]]|,&nbsp;}} stones | [[missing::Infobox entry for weight|''Unknown'']]}}
{{!}} '''Weight:''' || colspan="{{{span}}}"{{!}} {{#if: {{{weight|}}} | {{#arraymap:{{{weight}}}|,|x|[[weight of::x]]|,&nbsp;}} 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 15:01, 20 January 2013

A plug in for Weapon template.