Difference between revisions of "Template:SingleSpellLevel"

From DDO Compendium
 
(4 intermediate revisions by 2 users not shown)
Line 13: Line 13:
* Art
* Art
* Brd
* Brd
* ss
* Clr
* Clr
* da
* Drd
* Drd
* Bc
* Fvs
* Fvs
* Pal
* Pal
* sf
* Rgr
* Rgr
* Dh
* Sor
* Sor
* Wiz
* Wiz
* Wlk
* AotS
|parameter2name = level
|parameter2name = level
|parameter2description = The spell level for the class.
|parameter2description = The spell level for the class.
Line 26: Line 33:
}}
}}
</noinclude>
</noinclude>
<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>
<onlyinclude>
{{#if: {{{3|}}}|{{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,&nbsp;}}}}[[{{SpellClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}} Spells|{{SpellClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SingleSpellLevel||{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||{{#if: {{#dplvar: spellischild|}}||[[Category:{{SpellClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}}}}}</onlyinclude>

Latest revision as of 00:41, 15 February 2023

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:
  • Alc
  • Art
  • Brd
  • ss
  • Clr
  • da
  • Drd
  • Bc
  • Fvs
  • Pal
  • sf
  • Rgr
  • Dh
  • Sor
  • Wiz
  • Wlk
  • AotS
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}}}]]