Difference between revisions of "Template:SpellLevel"

From DDO Compendium
Line 8: Line 8:
|example2output = {{SpellLevel|Pal|3}}
|example2output = {{SpellLevel|Pal|3}}
|parameter1name = Class
|parameter1name = Class
|parameter1description = The spell abbreviation for the class
|parameter1description = The spell abbreviation for the class, class and level can be repeated 10 times
|parameter1values =  
|parameter1values =  
* Art
* Art
* Brd
* Brd
* Clr/Fvs
* Clr
* Fvs (if only fvs)
* Drd
* Drd
* Fvs
* Pal
* Pal
* Rng
* Rgr
* Sor/Wiz
* Sor
* Wiz
|parameter2name = level
|parameter2name = level
|parameter2description = The spell level for the class.
|parameter2description = The spell level for the class.
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>[[{{ClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}}|{{ClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{ClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}</onlyinclude>
|art = {{#dplvar:set|fullname|Artificer}}
|brd = {{#dplvar:set|fullname|Bard}}
|clr = {{#dplvar:set|fullname|Cleric}}
|drd = {{#dplvar:set|fullname|Druid}}
|fvs = {{#dplvar:set|fullname|Favored Soul}}
|pal = {{#dplvar:set|fullname|Paladin}}
|rng = {{#dplvar:set|fullname|Ranger}}
|wlk = {{#dplvar:set|fullname|Warlock}}
|clr/fvs = {{#dplvar:set|fullname|Cleric/Favored Soul}}
|sor/wiz = {{#dplvar:set|fullname|Sorcerer/Wizard}}
|fvs/clr = {{#dplvar:set|fullname|Cleric/Favored Soul}}
|wiz/sor = {{#dplvar:set|fullname|Sorcerer/Wizard}}
|#default = {{#dplvar:set|fullname|Please use a valid class syntax. See [[Template:SpellLevel]]}}
}}[[{{#dplvar:fullname}} Spells#Level {{{2}}}|{{{1}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||[[Category:{{#dplvar:fullname}} Level {{{2|}}} Spells]]}}}}</onlyinclude>

Revision as of 02:28, 20 June 2019

SpellLevel[edit]

This template is used to nicely format the class and level necessary for a spell.

Example Usage
{{SpellLevel|Art|1}}Artificer 1
{{SpellLevel|Pal|3}}Paladin 3

Usage[edit]

{{SpellLevel|(Class)|(level)}}

Parameter Documentation
ClassThe spell abbreviation for the class, class and level can be repeated 10 times
Possible Values:
  • Art
  • Brd
  • Clr
  • Drd
  • Fvs
  • Pal
  • Rgr
  • Sor
  • Wiz
levelThe spell level for the class.

Template

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


[[{{{1}}} Spells#Level {{{2}}}|{{{1}}} {{{2}}}]]