Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
m (Oops.)
(Add more optional fields. Remove outdated documentation.)
Line 28: Line 28:
 
| {{{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|{{{targetting|}}}|
|school2=<nowiki>{{</nowiki>Air Magic<nowiki>}}</nowiki>
+
{{#!:|-
|school3=
+
! align="left" | Targetting
|sources=<nowiki><div></nowiki>
+
| {{{targetting}}}
* <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|{{{range|}}}|
|castingnoise=3
+
{{#!:|-
|spellnoise=0
+
! align="left" | Range
<nowiki>
+
| {{{range}}}
}}</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|{{{hated by|}}}|
{{Spell
+
{{#!:|-
|name=Deflect Missiles
+
! align="left" | Hated By
|level=6
+
| {{{hated by}}}
|school1=[[Enchantments]]
+
}}}}
|school2=[[Air Magic]]
+
|-
|school3=
+
{{if|{{{flags|}}}|
|sources=<div>
+
{{#!:|-
* [[Book of Enchantments]]
+
! align="left" | Flags
* [[Book of the Sky]]
+
| {{{flags}}}
* [[Rod of warding]]
+
}}}}
</div>
+
|-
|castingnoise=3
+
|}</div>{{#set:spell level={{{level}}} }}<includeonly>[[Category:Spells]][[Category:Level {{{level}}} Spells]]</includeonly><noinclude>[[Category:Templates]]</noinclude>
|spellnoise=0
 
}}
 
[[Category:Templates]]</noinclude>
 

Revision as of 16:25, 8 November 2016

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


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