Difference between revisions of "Template:Monsters with spell"

From CrawlWiki
Jump to: navigation, search
(Fix typo)
(Better example)
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|}}}}}</includeonly><noinclude>This template generates a bulletted list of monsters that cast a particular spell. For example:
  <nowiki>{{monsters with spell|Fireball}}</nowiki>
+
  <nowiki>{{monsters with spell|Banishment}}</nowiki>
 
gives you:
 
gives you:
{{monsters with spell|Fireball}}
+
{{monsters with spell|Banishment}}
  
 
If the monster name is omitted, the page's title is used. The spell name is case-sensitive.
 
If the monster name is omitted, the page's title is used. The spell name is case-sensitive.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 21:17, 14 December 2015

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 following enemies may be able to cast Banishment, depending on their spell set:

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