Template:SpellTypeClass/doc
Jump to navigation
Jump to search
Documentation
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.
{{SpellName}}
- Map spell IDs to spell names
{{SpellIcon}}
- Render individual spell icons
{{SpellTypeClass}}
{{SpellTypeColour}}
- Resolve spell types into CSS classes/variables for styling
{{SpellCategory}}
- spell groupings based on tags
- 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
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |