Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
m (Fixed broken link)
(Show summons limit if available.)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="margin: 1.4em; margin-top:0; margin-right:0; padding: 0px; float: right; border:none;">
 
<div style="margin: 1.4em; margin-top:0; margin-right:0; padding: 0px; float: right; border:none;">
 
{| class="prettytable" style="border:none; margin:0; padding:0; width:18em;"
 
{| class="prettytable" style="border:none; margin:0; padding:0; width:18em;"
! colspan="2" style="font-size:larger;" | [[File:{{lc:{{PAGENAME}}.png}}|32px]]&emsp;{{{name}}}
+
! colspan="2" style="font-size:larger;" | [[File:{{lc:{{{name}}}.png}}|32px]]&emsp;{{{name}}}
 
|-
 
|-
 
! align="left" | Level
 
! align="left" | Level
Line 9: Line 9:
 
| {{{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)
Line 24: Line 30:
 
| {{{spellnoise|?}}}
 
| {{{spellnoise|?}}}
 
|-
 
|-
|}</div><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 14: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.