Difference between revisions of "Template:Missile"

From CrawlWiki
Jump to: navigation, search
(The item inspection screen does in fact display a missile's damage now (at least, if it's a throwing missile))
(Add a column for base and min delay, now that some missiles come with them.)
Line 10: Line 10:
 
! align="left" | Base damage
 
! align="left" | Base damage
 
| {{{damage}}}
 
| {{{damage}}}
 +
|-
 +
! align="left" | [[Weapon_speed|Base delay]] (%)
 +
| {{{basedelay}}} {{#set:Weapon base delay={{#invoke:String|first_word|{{{basedelay}}}}}}}
 +
|-
 +
! align="left" | [[Minimum_delay|Min delay]]
 +
| {{{mindelay}}} {{#set:Weapon minimum delay={{#invoke:String|first_word|{{{mindelay}}}}}}}
 
|}</div><includeonly>[[Category:Missiles]]</includeonly><noinclude><br clear="both" />
 
|}</div><includeonly>[[Category:Missiles]]</includeonly><noinclude><br clear="both" />
 
Put this template at the top of every missile page. Call it like this:  
 
Put this template at the top of every missile page. Call it like this:  
Line 19: Line 25:
 
   |launcher3  = optional; see below
 
   |launcher3  = optional; see below
 
   |damage      =  
 
   |damage      =  
 +
  |basedelay  =
 +
  |mindelay    =
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  

Revision as of 05:51, 1 July 2018

Name {{{name}}}
Launcher [[{{{launcher}}}]]
Base damage {{{damage}}}
Base delay (%) {{{basedelay}}}
"{{{basedelay}}}" is not a number.
Min delay {{{mindelay}}}
"{{{mindelay}}}" is not a number.

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

{{missile
 |name        = 
 |launcher    = 
 |launcher2   = optional; see below
 |launcher3   = optional; see below
 |damage      = 
 |basedelay   =
 |mindelay    =
}}

Use the name of the weapon, not the name of the skill, as the launcher (e.g. Bow, not Bows). The exception is for thrown missiles, which should have "throwing" (so the link works). For missiles with multiple launchers (stones with throwing and sling; and arrows with bow and longbow), specify the second or third launcher with launcher2 and launcher3. Note that launcher2 and launcher3 are included immediately after launcher (separated by a space), and that they are not linked automatically the way launcher is. Therefore you probably want something like:

|launcher  = throwing 
|launcher2 = / [[sling]] 
|launcher3 = / [[greatsling]]