Difference between revisions of "Template:AddSpellToBook"

From DDO Compendium
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]]{{TemplateDocumentation
<noinclude>{{TemplateDocumentation
|name = EnhancementSLA
|name = EnhancementSLA
|description = This template is used on equipment for the SLA enhancement benefit.   
|description = This template is used on enhancements for the SLA enhancement benefit.   
|category=Enhancement Templates
|example1 = <nowiki>{{AddSpellToBook|Enervation||Cleric|4}}</nowiki>
|example1 = <nowiki>{{AddSpellToBook|Enervation||Cleric|4}}</nowiki>
|example1output = {{AddSpellToBook|Enervation||Cleric|4}}
|example1output = {{AddSpellToBook|Enervation||Cleric|4}}
|example2 = <nowiki>{{AddSpellToBook|Enervation||Cleric|4|True}}</nowiki>
|example2output = {{AddSpellToBook|Enervation||Cleric|4|True}}
|parameter1name = Spell
|parameter1name = Spell
|parameter1description = This is the spell that will be added.
|parameter1description = This is the spell that will be added.
|parameter1values =
|parameter2name = Icon
|parameter2name = Icon
|parameter2description = This is the icon to use, in case the spell has a name that won't work in the icon name.
|parameter2description = This is the icon to use, in case the spell has a name that won't work in the icon name.
|parameter2values =
|parameter3name = class
|parameter3name = class
|parameter3description = This is the class that the spell is added to
|parameter3description = This is the class that the spell is added to
|parameter3values =
|parameter4name = level
|parameter4name = level
|parameter4description = This is the level the spell is added at
|parameter4description = This is the level the spell is added at
|parameter4values =  
|parameter5name = short
|parameter5description = Display a short version
}}
}}
</noinclude><onlyinclude>{{IconImage|Spell {{{1}}}|{{{2|}}}}} The spell '''[[{{{1}}}]]''' is added to the {{{3}}} spellbook as a level {{{4}}} spell.</onlyinclude>
</noinclude><onlyinclude>{{#if: {{{5|}}}|
Level {{{4}}}: {{IconImage|Spell {{{1}}}|{{{2|}}}}} '''{{RenderLink|{{{1}}}}}'''|{{IconImage|Spell {{{1}}}|{{{2|}}}}} The spell '''{{RenderLink|{{{1}}}}}''' is added to the {{{3}}} spellbook as a level {{{4}}} spell.}}</onlyinclude>

Latest revision as of 16:46, 18 January 2022

EnhancementSLA[edit]

This template is used on enhancements for the SLA enhancement benefit.

Example Usage
{{AddSpellToBook|Enervation||Cleric|4}}Spell Enervation Icon.png The spell Enervation is added to the Cleric spellbook as a level 4 spell.
{{AddSpellToBook|Enervation||Cleric|4|True}}Level 4: Spell Enervation Icon.png Enervation

Usage[edit]

{{EnhancementSLA|(Spell)|(Icon)|(class)|(level)|(short)}}

Parameter Documentation
SpellThis is the spell that will be added.
IconThis is the icon to use, in case the spell has a name that won't work in the icon name.
classThis is the class that the spell is added to
levelThis is the level the spell is added at
shortDisplay a short version

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[File:Spell {{{1}}}_Icon.png|link=|36px|x36px|]] The spell [[{{{1}}}]] is added to the {{{3}}} spellbook as a level {{{4}}} spell.