Difference between revisions of "Template:Missile"

From CrawlWiki
Jump to: navigation, search
(Add a column for base and min delay, now that some missiles come with them.)
(On second thought, let's make a create a new template for throwing missiles instead, since it creates less problems and only the throwing weapon pages need min/base delay info)
 
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 25: Line 19:
 
   |launcher3  = optional; see below
 
   |launcher3  = optional; see below
 
   |damage      =  
 
   |damage      =  
  |basedelay  =
 
  |mindelay    =
 
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  

Latest revision as of 06:18, 1 July 2018

Name {{{name}}}
Launcher [[{{{launcher}}}]]
Base damage {{{damage}}}

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      = 
}}

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]]