Difference between revisions of "Template:LearnSpell"

From Krafties
Jump to navigation Jump to search
(Converted the 'template explanation' into the new 'documentation' form, cleans up the template itself.)
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{| class=wikitable</noinclude>
+
{| class=wikitable <onlyinclude>
!style=width:120px|Level {{{1}}}
+
!style=width:120px|Level {{{level|?}}}
|'''{{{2}}}''' - ''{{{3}}}''
+
|'''{{{spell|unknown}}}''' - ''{{{description|  }}}''
 
|-
 
|-
<noinclude>
+
</onlyinclude>
|} [[Category:Templates]]
+
|}  
==Template Explanation==
 
This template will create each row of the spell list in the <code>{{[[Template:CombatSpells|CombatSpells]]}}</code>, <code>{{[[Template:MentalSpells|MentalSpells]]]]</code> and <code>{{[[Template:Healing Spells|Healing Spells]]}}</code>
 
;Look at this template and the one you are filling (Combat, Healing or Mental spells) for better understanding.
 
===<code><nowiki>{{LearnSpell| | | }}</nowiki></code>===
 
*How to fill the form
 
*#Level
 
*#Spell Name
 
*#Spell Description
 
  
;Exapmle using <code><nowiki>{{CombatSpells}}</nowiki></code> to complete the example
+
{{Documentation}}
<pre>
 
{{CombatSpells|Water|
 
{{LearnSpell|1|Bubble Blast|deals low damage}}
 
{{LearnSpell|7|Wave|deals medium damage}}
 
}}</pre>
 
 
 
{{CombatSpells|Water|
 
{{LearnSpell|1|Bubble Blast|deals low damage}}
 
{{LearnSpell|7|Wave|deals medium damage}}
 
}}
 
 
 
==See Also==
 
*[[Template:CombatSpells]]
 
*[[Template:HealingSpells]]
 
*[[Template:MentalSpells]]
 
</noinclude>
 

Latest revision as of 17:35, 10 October 2020

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[edit]

  • 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[edit]

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[edit]

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[edit]

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>