Difference between revisions of "Template:SingleSpellLevel"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 26: | Line 26: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#if: {{{3|}}}|{{#ifeq: {{#dplvar: fromdpl}} |true|<br>|, }}}}[[{{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>|, }}}}[[{{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> |
Revision as of 23:32, 14 March 2020
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}}}]]