Difference between revisions of "Template:Monsters with spell"

From CrawlWiki
Jump to: navigation, search
(Attempt to add the page to category monster spells if called without parameter.)
m (monster -> spell in documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Monster|monsters_with_spell|{{{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:
{{#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:
Line 8: Line 6:
 
The list of monsters does not include monsters that only appear in vaults, such as the [[antique lich]].
 
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.
+
If the spell name is omitted, the page's title is used. The spell name is case-sensitive.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:56, 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 spell name is omitted, the page's title is used. The spell name is case-sensitive.