Template:SpellSequence/doc

From Noita Wiki
Jump to navigation Jump to search

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.
  • {{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

Example 1:
Simple use with default template

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:
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Divide By 10
Divide By 10
Casts the next spell 10 times, but with reduced damage
Divide By 10
Damage Plus
Damage Plus
Increases the damage done by a projectile
Damage Plus
?
Triplicate Bolt
Triplicate Bolt
A formation of three small, fast bolts
Triplicate Bolt


Example 2:
Show gaps in sequence
{{SpellSequence
| spells      = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
                RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
                DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| tooltips = 1
| showEmpty = 1
}}
Result:
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Divide By 10
Divide By 10
Casts the next spell 10 times, but with reduced damage
Divide By 10
Damage Plus
Damage Plus
Increases the damage done by a projectile
Damage Plus
?
Triplicate Bolt
Triplicate Bolt
A formation of three small, fast bolts
Triplicate Bolt
Example 3:
Using a custom empty template
{{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:
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Monster Longleg.png
Monster Longleg.png
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Monster Longleg.png
Monster Longleg.png
Divide By 10
Divide By 10
Casts the next spell 10 times, but with reduced damage
Divide By 10
Damage Plus
Damage Plus
Increases the damage done by a projectile
Damage Plus
?
Triplicate Bolt
Triplicate Bolt
A formation of three small, fast bolts
Triplicate Bolt
Monster Longleg.png
Example 4:
Hiding unknown spells
{{SpellSequence
| spells      = MANA_REDUCE,MANA_REDUCE,MANA_REDUCE,,,
                RECHARGE,RECHARGE,RECHARGE,RECHARGE,,,
                DIVIDE_10,DAMAGE,FAKE_SPELL,BUCKSHOT
| hideUnknown = 1
| tooltips = 1
}}
Result:
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Add Mana
Add Mana
Immediately adds 30 mana to the wand
Add Mana
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Reduce Recharge Time
Reduce Recharge Time
Reduces the time between spellcasts
Reduce Recharge Time
Divide By 10
Divide By 10
Casts the next spell 10 times, but with reduced damage
Divide By 10
Damage Plus
Damage Plus
Increases the damage done by a projectile
Damage Plus
Triplicate Bolt
Triplicate Bolt
A formation of three small, fast bolts
Triplicate Bolt