Template:WeaponProperties: Difference between revisions
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:''' {{!}}{{!}} |
<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:''' {{!}}{{!}} |
{{#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=  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'']]}}{{#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= [[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'']]}}{{#Ifeq:{{{range|}}}|ranged|{{#If:{{{rangedRT|}}}| ({{#expr:{{{rangedRT}}}-1}}/[[ranged RT is::{{{rangedRT}}}]] RT)| [[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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{foi2|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi2}}} | foi is}} | {{#switch: {{{span}}} | 2|3=[[missing::Infobox entry for force of impact2|''Unknown'']] | }} }}{{ |
||
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{foi3}}} | foi is }} | {{# |
#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: {{{balance2|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance2}}} | balance is}} | {{#switch: {{{span}}} |2|3=[[missing::Infobox entry for balance2 |''Unknown'']] | }} }}{{ |
||
#If: {{{balance3|}}} | {{!}}{{!}} {{WeaponProcess| {{{balance3}}} | balance is}} | {{# |
#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: {{{suitedness2|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness2}}} | suitedness is}} | {{#switch: {{{span}}}|2|3=[[missing::Infobox entry for suitedness2|''Unknown'']] | }}}} {{ |
||
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness3}}} | suitedness is }} | {{# |
#If: {{{suitedness3|}}} | {{!}}{{!}} {{WeaponProcess| {{{suitedness3}}} | suitedness is }} | {{#switch: {{{span}}}|3=[[missing::Infobox entry for suitedness3|''Unknown'']] | }} }} }} }} |
||
|- |
|- |
||
| '''Construction:''' | |
| '''Construction:''' || colspan="{{{span}}}"{{!}}{{ConstructionProcess|{{{construction}}}}} |
||
|- |
|- |
||
| '''Metal:''' | |
| '''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:''' | |
{{!}} '''Weight:''' || colspan="{{{span}}}"{{!}} {{#if: {{{weight|}}} | {{#arraymap:{{{weight}}}|,|x|[[weight of::x]]|, }} 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.