Difference between revisions of "Template:SingleSpellLevel"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 22: | Line 22: | ||
|parameter2description = The spell level for the class. | |parameter2description = The spell level for the class. | ||
|parameter3name = add comma | |parameter3name = add comma | ||
| | |parameter3description = Adds a comma before the output | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#if: {{{3|}}}|, }}[[{{SpellClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}} Spells|{{SpellClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||{{#if: {{#dplvar: spellischild|}}|[[Category:{{SpellClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}}}</onlyinclude> | <onlyinclude>{{#if: {{{3|}}}|, }}[[{{SpellClassNameFromAbbr|{{{1}}}}} Spells#Level {{{2}}} Spells|{{SpellClassNameFromAbbr|{{{1}}}}} {{{2}}}]]{{#ifeq: {{FULLPAGENAME}} |Template:SpellLevel||{{#ifeq: {{#dplvar: fromdpl}} |true||{{#if: {{#dplvar: spellischild|}}|[[Category:{{SpellClassNameFromAbbr|{{{1}}}}} Level {{{2|}}} Spells]]}}}}}}</onlyinclude> |
Revision as of 01:57, 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 | |
Class | The spell abbreviation for the class Possible Values:
|
level | The spell level for the class. |
add comma | Adds 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}}}]]