Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
m (Use name for icon path, not page name.)
m (Don't show empty rows for missing schools.)
Line 8: Line 8:
 
! align="left" | School<sup>1</sup>
 
! align="left" | School<sup>1</sup>
 
| {{{school1}}}
 
| {{{school1}}}
|-
+
{{if|{{{school2|}}}|
 +
{{#|-
 
! align="left" | School<sup>2</sup>
 
! align="left" | School<sup>2</sup>
 
| {{{school2}}}
 
| {{{school2}}}
|-
+
}}}}
 +
{{if|{{{school3|}}}|
 +
{{#|-
 
! align="left" | School<sup>3</sup>
 
! align="left" | School<sup>3</sup>
 
| {{{school3}}}
 
| {{{school3}}}
 +
}}}}
 
|-
 
|-
 
! align="left" | Source(s)
 
! align="left" | Source(s)

Revision as of 16:42, 3 November 2016

[[File:{{{name}}}.png|32px]] {{{name}}}
Level {{{level}}}
School1 {{{school1}}}


Source(s) {{{sources}}}
Casting noise  ?
Spell noise  ?
"{{{level}}}" is not a number.

Use this template for pages about specific spells; put it at the top of every such page. Example usage:

{{Spell
|name=Deflect Missiles
|level=6
|school1={{Enchantments}}
|school2={{Air Magic}}
|school3=
|sources=<div>
* [[Book of Enchantments]]
* [[Book of the Sky]]
* [[Rod of warding]]</div>
|castingnoise=3
|spellnoise=0

}}

The <div></div> and newline before the bulleted list are necessary for the first bullet to be formatted correctly. The above example produces:

Deflect missiles.png Deflect Missiles
Level 6
School1 Enchantments
School2 Air Magic
Source(s)
Casting noise 3
Spell noise 0