Difference between revisions of "Template:Weapon"

From CrawlWiki
Jump to: navigation, search
 
(Remove weight - it's obsolete since 0.15)
 
(15 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
! align="left" | Name
 
! align="left" | Name
 
| {{{name}}}
 
| {{{name}}}
|-
 
! align="left" | Weight
 
| {{{weight}}} aum
 
 
|-
 
|-
 
! align="left" | Skill
 
! align="left" | Skill
| [[{{{skill}}}]] {{{skill2|}}}
+
| [[Weapon skill::{{{skill}}}]]
 
|-
 
|-
 
! align="left" | [[Weapon_damage|Damage]]
 
! align="left" | [[Weapon_damage|Damage]]
| {{{damage}}}
+
| [[Weapon damage::{{{damage}}}]]
 
|-
 
|-
 
! align="left" | Accuracy
 
! align="left" | Accuracy
| {{{accuracy}}}
+
| [[Weapon accuracy::{{{accuracy}}}]]
 +
|-
 +
! align="left" | [[Weapon_speed|Base delay]] (%)
 +
| {{{basedelay}}} {{#set:Weapon base delay={{#invoke:String|first_word|{{{basedelay}}}}}}}
 
|-
 
|-
! align="left" | [[Weapon_Speed|Delay]]
+
! align="left" | [[Minimum_delay|Min delay]]
| {{{basedelay}}}
+
| {{{mindelay}}} {{#set:Weapon minimum delay={{#invoke:String|first_word|{{{mindelay}}}}}}}
 
|-
 
|-
 
! align="left" | [[Handedness|Hands]]
 
! align="left" | [[Handedness|Hands]]
| {{{hands}}}
+
| [[Handedness::{{{hands}}}]]
 
|-
 
|-
 
! align="left" | Size
 
! align="left" | Size
| {{{size}}}
+
| [[Weapon size::{{{size}}}]]
 
|-
 
|-
 
! align="left" | Ranged?
 
! align="left" | Ranged?
| {{{ranged}}}
+
| [[Is ranged::{{{ranged}}}]]
 
|}
 
|}
  
Line 35: Line 35:
 
  <nowiki>{{</nowiki>weapon
 
  <nowiki>{{</nowiki>weapon
 
   |name        =  
 
   |name        =  
  |weight      =
 
 
   |skill      =  
 
   |skill      =  
 
   |skill2      = optional
 
   |skill2      = optional
 
   |damage      =  
 
   |damage      =  
 
   |accuracy    =  
 
   |accuracy    =  
   |basedelay  = X%
+
   |basedelay  =
 +
  |mindelay    =
 
   |hands      = One, Half, Double, Two
 
   |hands      = One, Half, Double, Two
 
   |size        = Small, Medium, Large, Big
 
   |size        = Small, Medium, Large, Big

Latest revision as of 02:49, 27 March 2015

Name {{{name}}}
Skill {{{skill}}}
Damage {{{damage}}}
Accuracy {{{accuracy}}}
Base delay (%) {{{basedelay}}}
"{{{basedelay}}}" is not a number.
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        = 
 |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
}}