Difference between revisions of "Template:SpellCost"

From DDO Compendium
Line 16: Line 16:
* S or SP - Spell Points (Default)
* S or SP - Spell Points (Default)
* H or HP - Hit Points
* H or HP - Hit Points
* Anything else is the label
|parameter2name = Cost
|parameter2name = Cost
|parameter2description = The number of spell points the spell costs, this an the next can be repeated 10 times.
|parameter2description = The number of spell points the spell costs, this an the next can be repeated 10 times.
Line 40: Line 41:
|h|hp|hit points='''Hit Points:'''<br>
|h|hp|hit points='''Hit Points:'''<br>
|s|sp|spell points='''Spell Points:'''<br>
|s|sp|spell points='''Spell Points:'''<br>
|#default='''{{{1}}}'''<br>
}}|{{#switch: {{lc:{{{1|}}}}}
}}|{{#switch: {{lc:{{{1|}}}}}
|h|hp|hit points='''Cost (<span style="Color: #00eeef">Hit Points</span>):'''&nbsp;  
|h|hp|hit points='''Cost (<span style="Color: #00eeef">Hit Points</span>):'''&nbsp;  
|s|sp|spell points='''Cost (<span style="Color: #00eeef">Spell Points</span>):'''&nbsp;
|s|sp|spell points='''Cost (<span style="Color: #00eeef">Spell Points</span>):'''&nbsp;
|#deault='''Cost (<span style="Color: #00eeef">{{{1}}}</span>):'''&nbsp;
}}}}{{SpellCostClass|{{{2|}}}|{{{3|}}}}}{{#if: {{{4|}}}|{{SpellCostClass|{{{4|}}}|{{{5|}}}|True}}}}{{#if: {{{6|}}}|{{SpellCostClass|{{{6|}}}|{{{7|}}}|True}}}}{{#if: {{{8|}}}|{{SpellCostClass|{{{8|}}}|{{{9|}}}|True}}}}{{#if: {{{10|}}}|{{SpellCostClass|{{{10|}}}|{{{11|}}}|True}}}}{{#if: {{{12|}}}|{{SpellCostClass|{{{12|}}}|{{{13|}}}|True}}}}{{#if: {{{14|}}}|{{SpellCostClass|{{{14|}}}|{{{15|}}}|True}}}}{{#if: {{{16|}}}|{{SpellCostClass|{{{16|}}}|{{{17|}}}|True}}}}{{#if: {{{18|}}}|{{SpellCostClass|{{{18|}}}|{{{19|}}}|True}}}}{{#if: {{{20|}}}|{{SpellCostClass|{{{20|}}}|{{{21|}}}|True}}}}</onlyinclude>
}}}}{{SpellCostClass|{{{2|}}}|{{{3|}}}}}{{#if: {{{4|}}}|{{SpellCostClass|{{{4|}}}|{{{5|}}}|True}}}}{{#if: {{{6|}}}|{{SpellCostClass|{{{6|}}}|{{{7|}}}|True}}}}{{#if: {{{8|}}}|{{SpellCostClass|{{{8|}}}|{{{9|}}}|True}}}}{{#if: {{{10|}}}|{{SpellCostClass|{{{10|}}}|{{{11|}}}|True}}}}{{#if: {{{12|}}}|{{SpellCostClass|{{{12|}}}|{{{13|}}}|True}}}}{{#if: {{{14|}}}|{{SpellCostClass|{{{14|}}}|{{{15|}}}|True}}}}{{#if: {{{16|}}}|{{SpellCostClass|{{{16|}}}|{{{17|}}}|True}}}}{{#if: {{{18|}}}|{{SpellCostClass|{{{18|}}}|{{{19|}}}|True}}}}{{#if: {{{20|}}}|{{SpellCostClass|{{{20|}}}|{{{21|}}}|True}}}}</onlyinclude>

Revision as of 00:50, 28 October 2021

SpellCost[edit]

This template is used to nicely format the spell point cost for a spell

Example Usage
{{SpellCost|s|10}}Cost (Spell Points): 10
{{SpellCost|SP|4|Wiz|2|Sor|1|Brd}}Cost (Spell Points): 4 (Wizard), 2 (Sorcerer), 1 (Bard)
{{SpellCost|h|4|R1|2|R2|1|R3}}Cost (Hit Points): 4 (Rank 1), 2 (Rank 2), 1 (Rank 3)
{{SpellCost|s|15|{{SpellCostClassGroup|15|Art|Clr|FvS|Pal|Sor|Wiz|Wlk}}|10|Rgr}}Cost (Spell Points): 15 (Artificer, Cleric, Favored Soul, Paladin, Sorcerer, Wizard, Warlock), 10 (Ranger)

Usage[edit]

{{SpellCost|(Unit)|(Cost)|(Class)}}

Parameter Documentation
UnitWhat does this spell cost
Possible Values:
  • S or SP - Spell Points (Default)
  • H or HP - Hit Points
  • Anything else is the label
CostThe number of spell points the spell costs, this an the next can be repeated 10 times.
ClassThe class this time is specific to
Possible Values:
  • Art
  • Brd
  • Clr
  • Drd
  • Fvs
  • Pal
  • Rgr
  • Sor
  • Wlk
  • Wiz
  • R1 - SLA Rank 1
  • R2 - SLA Rank 2
  • R3 - SLA Rank 3
  • Template:SpellCostClassGroup to group multiple classes with the same cost

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.