Template:SpellSequence/doc
Jump to navigation
Jump to search
Documentation
This template uses Module:Wand to return an ordered sequence of spells (like on a wand). You can supply a list of cargo fields to return and a template to be executed for each element in the sequence. (By default, this uses the same output templates as {{SpellQueryIcon}}
).
Preserves order of spells. Supply an 'empty' template if you want to see the gaps.
Spell Related templates
{{Wand2}}
- Render Wands and wand builds just like in-game.
{{SpellSequence}}
- Render ordered spell sequences, just the spells, or customise using your own templates.
{{SpellName}}
- Maps spell IDs to spell names.
{{SpellIcon}}
- Render individual spell icons.
{{SpellTypeClass}}
{{SpellTypeColour}}
- Resolve spell type names into CSS classes/variables for styling other templates or articles.
{{SpellCategory}}
- Render spell grouping navigation boxes based on tags.
- Module:Wand - this lua module handles querying cargo for data, and rendering the Wand2 & SpellSequence templates.
Examples
Showing default unknown spell template.
{{SpellSequence
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| tooltips = 1
}}
Result:
?
{{SpellSequence
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| tooltips = 1
| showEmpty = 1
}}
Result:
?
{{SpellSequence
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| empty = <div class="wand2-spell">[[File:Monster_Longleg.png]]</div>
| tooltips = 1
}}
Result:
?
{{SpellSequence
| spells = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| hideUnknown = 1
| tooltips = 1
}}
Result: