Template:Immune: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(add mechanicals)
(add logic to not show duplicates and group creatures where possible.)
Line 7: Line 7:
* {{Cn|Fangarm}}s{{-wh}}
* {{Cn|Fangarm}}s{{-wh}}
|}}{{if||{{{spell123|}}}|
|}}{{if||{{{spell123|}}}|
* {{Cn|Green Dragon}}s
* {{Cn|Green Dragon|noname=}}{{Cn|Gold Dragon|name=Green and Gold Dragons}}
* {{Cn|Red Dragon}}s
* {{Cn|Red Dragon|noname=}}{{Cn|Black Dragon|name=Red and Black Dragons}}
* {{Cn|Azure Dragon}}s
* {{Cn|Azure Dragon}}s
|}}{{if||{{{spell1234|}}}|
|}}{{if||{{{spell1234|}}}|{{if||{{{spell123|}}}||* {{Cn|Gold Dragon}}s}}|}}{{if||{{{spell12345|}}}|
* {{Cn|Gold Dragon}}s
|}}{{if||{{{spell12345|}}}|
* {{Cn|Black Dragon}}s
* {{Cn|Magic Elemental}}s
* {{Cn|Magic Elemental}}s
|}}{{if||{{{fire|}}}|
{{if||{{{spell123|}}}||* {{Cn|Black Dragon}}s}}|}}{{if||{{{fire|}}}|
* {{Cn|Efreeti|noname=}}{{Cn|Efreet Sultan|name=Efreet and Efreet Sultan}}s
* {{Cn|Efreeti|noname=}}{{Cn|Efreet Sultan|name=Efreet and Efreet Sultan}}s
* {{Cn|Fire Elemental|noname=}}{{Cn|Energy Elemental|name=Fire and Energy Elementals}}
{{if||{{{mind|}}}||* {{Cn|Fire Elemental|noname=}}{{Cn|Energy Elemental|name=Fire and Energy Elementals}}}}
* {{{hota|{{Cn|Firebird}}s <sup>*''(not in {{hota}}){{-wh}}''</sup> and }}}{{Cn|Phoenix}}es
* {{{hota|{{Cn|Firebird}}s <sup>*''(not in {{hota}}){{-wh}}''</sup> and }}}{{Cn|Phoenix}}es
|}}<noinclude>
|}}<noinclude>
Line 28: Line 25:
*spell123=1
*spell123=1
*spell1234=1
*spell1234=1
*spell1235=1
*spell12345=1
*fire=1
*fire=1
*hota=(leave blank)
*hota=(leave blank)


==Example==
{{immune|mind=1|fire=1|spell123=1|spell1234=1|spell12345=1}}
[[Category:Creature templates]]</noinclude>
[[Category:Creature templates]]</noinclude>

Revision as of 19:14, 5 January 2024


Usage

{{immune|mind=1|fire=1}}

Variables

  • mind=1
  • spell123=1
  • spell1234=1
  • spell12345=1
  • fire=1
  • hota=(leave blank)

Example