Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
m (Oops.)
(Show summons limit if available.)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
! align="left" | School<sup>1</sup>
 
! align="left" | School<sup>1</sup>
 
| {{{school1}}}
 
| {{{school1}}}
 +
|-
 
{{if|{{{school2|}}}|
 
{{if|{{{school2|}}}|
 
{{#!:|-
 
{{#!:|-
Line 13: Line 14:
 
| {{{school2}}}
 
| {{{school2}}}
 
}}}}
 
}}}}
 +
|-
 
{{if|{{{school3|}}}|
 
{{if|{{{school3|}}}|
 
{{#!:|-
 
{{#!:|-
Line 28: Line 30:
 
| {{{spellnoise|?}}}
 
| {{{spellnoise|?}}}
 
|-
 
|-
|}</div>{{#set:spell level={{{level}}} }}<includeonly>[[Category:Spells]][[Category:Level {{{level}}} Spells]]</includeonly><noinclude>
+
{{if|{{{power cap|}}}|
 
+
{{#!:|-
Use this template for pages about specific [[spell]]s; put it at the top of every such page.  Example usage:
+
! align="left" | Power Cap
<nowiki>{{</nowiki>Spell
+
| {{{power cap}}}
|name=Deflect Missiles
+
}}}}
|level=6
+
|-
|school1=<nowiki>{{</nowiki>Enchantments<nowiki>}}</nowiki>
+
{{if|{{{summons limit|}}}|
|school2=<nowiki>{{</nowiki>Air Magic<nowiki>}}</nowiki>
+
{{#!:|-
|school3=
+
! align="left" | Summons Limit
|sources=<nowiki><div></nowiki>
+
| {{{summons limit}}}
* <nowiki>[[</nowiki>Book of Enchantments<nowiki>]]</nowiki>
+
}}}}
* <nowiki>[[</nowiki>Book of the Sky<nowiki>]]</nowiki>
+
|-
* <nowiki>[[</nowiki>Rod of warding<nowiki>]]</nowiki><nowiki></div></nowiki>
+
{{if|{{{targetting|}}}|
|castingnoise=3
+
{{#!:|-
|spellnoise=0
+
! align="left" | Targetting
<nowiki>
+
| {{{targetting}}}
}}</nowiki>
+
}}}}
 
+
|-
The <nowiki><div></div></nowiki> and newline before the bulleted list are necessary for the first bullet to be formatted correctly.  The above example produces:
+
{{if|{{{range|}}}|
{{Spell
+
{{#!:|-
|name=Deflect Missiles
+
! align="left" | Range
|level=6
+
| {{{range}}}
|school1=[[Enchantments]]
+
}}}}
|school2=[[Air Magic]]
+
|-
|school3=
+
{{if|{{{hated by|}}}|
|sources=<div>
+
{{#!:|-
* [[Book of Enchantments]]
+
! align="left" | Hated By
* [[Book of the Sky]]
+
| {{{hated by}}}
* [[Rod of warding]]
+
}}}}
</div>
+
|-
|castingnoise=3
+
{{if|{{{flags|}}}|
|spellnoise=0
+
{{#!:|-
}}
+
! align="left" | Flags
[[Category:Templates]]</noinclude>
+
| {{{flags}}}
 +
}}}}
 +
|-
 +
|}</div>{{#set:spell level={{{level}}} }}<includeonly>[[Category:Level {{{level}}} Spells]]</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 13:05, 23 November 2016

[[File:{{{name}}}.png|32px]] {{{name}}}
Level {{{level}}}
School1 {{{school1}}}
Source(s) {{{sources}}}
Casting noise  ?
Spell noise  ?
"{{{level}}}" is not a number.