Template:SpellTypeClass

From Noita Wiki
Jump to navigation Jump to search

This template returns the CSS class for a given spell type. This can be used for ap

Spell Related templates

  • {{SpellSequence}} - Render ordered spell sequences using your own templates.
  • {{SpellIcon}} - Render individual spell icons
  • Module:Wand - this lua module handles querying cargo for data, and rendering the Wand2 template.

Examples

{{SpellTypeClass|Projectile}}
{{SpellTypeClass|2}}
{{SpellTypeClass|type=other}}
  • Works with names or action type enum IDs
  • Returns spellUnknown if nothing matches
In Out
{{SpellTypeClass|Projectile}}
spellProjectile
{{SpellTypeClass|Static}}
spellStatic
{{SpellTypeClass|Modifier}}
spellModifier
{{SpellTypeClass|Multicast}}
spellMulticast
{{SpellTypeClass|Material}}
spellMaterial
{{SpellTypeClass|Other}}
spellOther
{{SpellTypeClass|Utility}}
spellUtility
{{SpellTypeClass|Passive}}
spellPassive
{{SpellTypeClass|NotASpellType}}
spellUnknown
| 0 | Projectile | projectile = spellProjectile
| 1 | Static | Static Projectile | Static projectile | static projectile = spellStatic
| 2 | Modifier | Projectile Modifier | Projectile modifier | projectile modifier = spellModifier
| 3 | Multicast | multicast | Draw Many | Draw many | = spellMulticast
| 4 | Material | material = spellMaterial
| 5 | Other | other = spellOther
| 6 | Utility | utility = spellUtility
| 7 | Passive | passive = spellPassive

Parameters

Template parameters

ParameterDescriptionTypeStatus
No parameters specified