Difference between revisions of "Template:Weapon"

From CrawlWiki
Jump to: navigation, search
m
Line 18: Line 18:
 
|-
 
|-
 
! align="left" | [[Weapon_speed|Base delay]] (%)
 
! align="left" | [[Weapon_speed|Base delay]] (%)
| [[Weapon base delay::{{{basedelay}}}]]
+
| {{{basedelay}}} {{#set:Weapon base delay={{#invoke:String|firs_word|{{{basedelay}}}}}}}
 
|-
 
|-
 
! align="left" | [[Minimum_delay|Min delay]]
 
! align="left" | [[Minimum_delay|Min delay]]
| {{{mindelay}}} {{#set:Weapon minimum delay={{{mindelay}}}}}
+
| {{{mindelay}}} {{#set:Weapon minimum delay={{#invoke:String|first_word|{{{mindelay}}}}}}}
 
|-
 
|-
 
! align="left" | [[Handedness|Hands]]
 
! align="left" | [[Handedness|Hands]]

Revision as of 18:02, 29 November 2013

Name {{{name}}}
Weight {{{weight}}} aum
Skill {{{skill}}}
Damage {{{damage}}}
Accuracy {{{accuracy}}}
Base delay (%) {{{basedelay}}}
  • "" can not be assigned to a declared number type with value -0.
  • The given value "Script error" contains strip markers and therefore it cannot be parsed sufficiently.
Min delay {{{mindelay}}}
"{{{mindelay}}}" is not a number.
Hands {{{hands}}}
Size {{{size}}}
Ranged? {{{ranged}}}

Put this template at the top of every weapon page. Call it like this:

{{weapon
 |name        = 
 |weight      = 
 |skill       = 
 |skill2      = optional
 |damage      = 
 |accuracy    = 
 |basedelay   =
 |mindelay    =
 |hands       = One, Half, Double, Two
 |size        = Small, Medium, Large, Big
 |ranged      = "<missile> required" or "Throwable"
 |damtype     = Piercing, Slashing, Slicing, Stabbing, Chopping, Crushing
}}