Difference between revisions of "Template:Spell"

From CrawlWiki
Jump to: navigation, search
(Okay, since nobody voiced any objections, I'mma change this thing and add images to all the spells.)
 
(Show summons limit if available.)
 
(11 intermediate revisions by 4 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:{{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 19: Line 25:
 
|-
 
|-
 
! align="left" | [[Spell noise|Casting noise]]
 
! align="left" | [[Spell noise|Casting noise]]
| {{{castingnoise|0}}}
+
| {{{castingnoise|?}}}
 
|-
 
|-
 
! align="left" | [[Spell noise|Spell noise]]
 
! align="left" | [[Spell noise|Spell noise]]
| {{{spellnoise|0}}}
+
| {{{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 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.