Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
m (Don't show empty rows for missing schools.)
m (Oops.)
Line 9: Line 9:
 
| {{{school1}}}
 
| {{{school1}}}
 
{{if|{{{school2|}}}|
 
{{if|{{{school2|}}}|
{{#|-
+
{{#!:|-
 
! align="left" | School<sup>2</sup>
 
! align="left" | School<sup>2</sup>
 
| {{{school2}}}
 
| {{{school2}}}
 
}}}}
 
}}}}
 
{{if|{{{school3|}}}|
 
{{if|{{{school3|}}}|
{{#|-
+
{{#!:|-
 
! align="left" | School<sup>3</sup>
 
! align="left" | School<sup>3</sup>
 
| {{{school3}}}
 
| {{{school3}}}

Revision as of 17:43, 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