Difference between revisions of "Template:SingleSpellLevel"

From DDO Compendium
Line 25: Line 25:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#if: {{{3|}}}|,&nbsp;}}[[{{SpellClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}} Spells|{{SpellClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SingleSpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||{{#if: {{#dplvar: spellischild|}}||[[Category:{{SpellClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}}}</onlyinclude>
<onlyinclude>{{#if: {{{3|}}}|{{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,&nbsp;}}}}[[{{SpellClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}} Spells|{{SpellClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SingleSpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||{{#if: {{#dplvar: spellischild|}}||[[Category:{{SpellClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}}}</onlyinclude>

Revision as of 23:38, 17 July 2019

SpellLevel[edit]

This is an internal template used by Template:SpellLevel to nicely format the class and level necessary for a spell.

Example Usage
{{SingleSpellLevel|Art|1}}Artificer 1
{{SingleSpellLevel|Art|1|True}}Artificer 1

Usage[edit]

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

Parameter Documentation
ClassThe spell abbreviation for the class
Possible Values:
  • Art
  • Brd
  • Clr
  • Drd
  • Fvs
  • Pal
  • Rgr
  • Sor
  • Wiz
levelThe spell level for the class.
add commaAdds a comma before the output

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}}} Spells|{{{1}}} {{{2}}}]]