Template:Spell: Difference between revisions
Template page
More actions
imported>Medar m Use name for icon path, not page name. |
imported>Medar 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 15:42, 3 November 2016
| [[File:{{{name}}}.png|32px]] {{{name}}} | |
|---|---|
| Level | {{{level}}} |
| School1 | {{{school1}}}
|
| Source(s) | {{{sources}}} |
| Casting noise | ? |
| Spell noise | ? |
{{#set:spell level={{{level}}} }}
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:
| Level | 6 | ||
|---|---|---|---|
| School1 | Enchantments
{{#|- |
School2 | Air Magic
}} |
| Source(s) | |||
| Casting noise | 3 | ||
| Spell noise | 0 | ||
{{#set:spell level=6 }}