Template:SpellIcon
Jump to navigation
Jump to search
Documentation
Renders an individual spell icon with coloured border.
Used by:
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.
Usage
{{SpellIcon
| page = Spell Page
| name = Spell Name
| image = Spell Image.png
| type = projectile
}}
Examples
Example 1:
{{flex/start}}
{{SpellIcon|page=Spitter Bolt|name=Spitter Bolt|image=Spell_spitter.png|type=Projectile}}
{{SpellIcon|page=Circle of Buoyancy|name=Circle of Buoyancy|image=Spell_levitation_field.png|type=Static}}
{{SpellIcon|page=Summon Tiny Ghost|name=Summon Tiny Ghost|image=Spell_tiny_ghost.png|type=Passive}}
{{SpellIcon|page=Gold To Power|name=Gold To Power|image=Spell_golden_punch.png|type=Utility}}
{{SpellIcon|page=Nolla|name=Nolla|image=Spell_nolla.png|type=Modifier}}
{{SpellIcon|page=Chunk of Soil|name=Chunk of Soil|image=Spell_soil.png|type=Material}}
{{SpellIcon|page=Tuple Spell|name=Tuple Spell|image=Spell_burst_2.png|type=Multicast}}
{{SpellIcon|page=Random Spell|name=Random Spell|image=Spell_random_spell.png|type=Other}}
{{SpellIcon|page=Null|name=Null|image=Spell_not_an_image.png|type=NotAType}}
{{flex/end}}
Result:
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | type | The type of the spell (projectile, modifier, etc) | Unknown | optional |
image | image | The spell icon image | Unknown | optional |
_pageName | _pageName page | The wiki page name of the spell to link to | Unknown | optional |
name | name | The name of the spell | Unknown | optional |