Difference between revisions of "Template:SpellCostClass"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 18: | Line 18: | ||
* Clr | * Clr | ||
* Drd | * Drd | ||
* dd | |||
* Fvs | * Fvs | ||
* Pal | * Pal | ||
Line 30: | Line 31: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#ifeq: {{lc:{{{3|}}}}}|true|{{#ifeq: {{#dplvar: fromdpl}} |true|<br>|, }}}}{{#switch: {{lc:{{{2|}}}}} | <onlyinclude>{{#ifeq: {{lc:{{{3|}}}}}|true|{{#ifeq: {{#dplvar: fromdpl}} |true|<br>|, }}}}{{#if: {{{2|}}}||{{{1}}}}}{{#switch: {{lc:{{{2|}}}}} | ||
|art|brd|clr|drd|fvs|pal|rgr|sor|wiz|r1|r2|r3={{{1}}} ({{SpellClassNameFromAbbr|{{{2}}}|True}}) | |art|brd|clr|drd|fvs|pal|rgr|sor|wiz|r1|r2|r3={{{1}}} ({{SpellClassNameFromAbbr|{{{2}}}|True}}) | ||
|#default={{#if: {{{2|}}}| {{{2}}}}} | |#default={{#if: {{{2|}}}| {{{2}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Latest revision as of 02:15, 13 February 2025
SpellCostClass[edit]
This is a helper template is used to nicely format the class and cost for a single entry called by the SpellCost template
Example Usage | |
{{SpellCostClass|10|Art}} | 10 (Artificer) |
{{SpellCostClass||{{SpellCostClassGroup|25|Art|Clr|FvS|Pal|Sor|Wiz}}|true}} | , 25 (Artificer, Cleric, Favored Soul, Paladin, Sorcerer, Wizard) |
{{SpellCostClass|10}} | 10 |
Usage[edit]
{{SpellCostClass|(cost)|(Class)|(comma)}}
Parameter Documentation | |
cost | The actual cost for this group |
Class | The spell abbreviation for the class Possible Values:
|
comma | Should there potentially be a comma before this entry, use True if there should be |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}