Difference between revisions of "Template:LearnSpell"

From Krafties
Jump to navigation Jump to search
m
m
Line 17: Line 17:
  
 
==Example==
 
==Example==
using <code><nowiki>{{CombatSpells}}</nowiki></code> to complete the example
+
using <code><nowiki>{{CombatSpells}}</nowiki></code> to complete the example, to show how the commands work
 
<pre>
 
<pre>
 
{{CombatSpells|Water|
 
{{CombatSpells|Water|
{{LearnSpell|level=1|spell=Bubble Blast|description=deals low damage}}
+
{{LearnSpell|level=1|description=deals low damage}}
 
{{LearnSpell|level=7|spell=Wave}}
 
{{LearnSpell|level=7|spell=Wave}}
 
}}</pre>
 
}}</pre>
  
 
{{CombatSpells|Water|
 
{{CombatSpells|Water|
{{LearnSpell|level=1|spell=Bubble Blast|description=deals low damage}}
+
{{LearnSpell|level=1|description=deals low damage}}
 
{{LearnSpell|level=7|spell=Wave}}
 
{{LearnSpell|level=7|spell=Wave}}
 
}}
 
}}
 +
*First spell: skipping the "<nowiki>spell=</nowiki>" results in a ''unknown'' spell
 +
*Second spell: skipping the description
 
==Tips==
 
==Tips==
 
:The links to spells are <code><nowiki>[[Spell Name (spell)|Spell Name]]</nowiki></code>
 
:The links to spells are <code><nowiki>[[Spell Name (spell)|Spell Name]]</nowiki></code>

Revision as of 04:04, 21 August 2014

Level ? unknown -
Documentation icon Template documentation ( view · talk · edit)
  • You can use this template as often as you need, just in separate lines, within the designated Spells table.

This template will create each row of the spell list in the {{CombatSpells}}, {{MentalSpells}} and {{HealingSpells}}

Look at this template and the one you are filling (Combat, Healing or Mental spells) for better understanding.

How to fill the LearnSpell form

  • How to fill the form{{LearnSpell|level=|spell=|description=}}
    • level= what level the spell is learned
    • spell= Spell name
    • description= description of the spell


How to use the Spells table

using {{CombatSpells}} to complete the example, to show how the commands work

{{CombatSpells|Water|
{{LearnSpell|level=1|description=deals low damage}}
{{LearnSpell|spell=Wave}}
}}
Water, Combat Spells (unlocked on Combat levels)
Level 1 unknown - deals low damage
Level ? Wave -

please convert this information into the UnlockSpells template

  • First spell: skipping the "spell=" results in a unknown spell
  • Second spell: skipping the "level=" and "description="
the point is, the order of the commands does not matter for the template to work. Just dont forget to add the information

Tips

The links to spells are [[Spell Name (spell)|Spell Name]]
  • In other words[[Bubble Blast (spell)|Bubble Blast]] becomes Bubble Blast
  • or use the neat feature of "auto-renamed links": [[Bubble Blast (spell)|]] becomes Bubble Blast


See Also

The above documentation is transcluded from Template:LearnSpell/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly>