Difference between revisions of "Template:Monsters with spell"

From CrawlWiki
Jump to: navigation, search
(Update docs)
(Attempt to add the page to category monster spells if called without parameter.)
Line 1: Line 1:
<includeonly>{{#invoke:Monster|monsters_with_spell|{{{1|}}}}}</includeonly><noinclude>This template generates a bulletted list of monsters that cast a particular spell. For example:
+
<includeonly>{{#invoke:Monster|monsters_with_spell|{{{1|}}}}}
 +
{{#if:{{{1|}}}||[[Category:Monster spells]]}}</includeonly>
 +
<noinclude>This template generates a bulletted list of monsters that cast a particular spell. For example:
 
  <nowiki>{{monsters with spell|Banishment}}</nowiki>
 
  <nowiki>{{monsters with spell|Banishment}}</nowiki>
 
gives you:
 
gives you:

Revision as of 12:55, 15 January 2016

This template generates a bulletted list of monsters that cast a particular spell. For example:

{{monsters with spell|Banishment}}

gives you: The following enemies cast Banishment:

The list of monsters does not include monsters that only appear in vaults, such as the antique lich.

If the monster name is omitted, the page's title is used. The spell name is case-sensitive.