Difference between revisions of "Template:SpellCooldown"

From DDO Compendium
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
|example3 = <nowiki>{{SpellCooldown|Second|18|R1|12|R2|6|R3}}</nowiki>
|example3 = <nowiki>{{SpellCooldown|Second|18|R1|12|R2|6|R3}}</nowiki>
|example3output = {{SpellCooldown|Second|18|R1|12|R2|6|R3}}
|example3output = {{SpellCooldown|Second|18|R1|12|R2|6|R3}}
|example4 = <nowiki>{{SpellCooldown|Second|2|{{SpellCooldownClassGroup|2|Brd|Wiz|Wlk}}|1.5|Sor}}</nowiki>
|example4output = {{SpellCooldown|Second|2|{{SpellCooldownClassGroup|2|Brd|Wiz|Wlk}}|1.5|Sor}}
|parameter1name = Unit
|parameter1name = Unit
|parameter1description = The Unit of time these are using
|parameter1description = The Unit of time these are using
Line 20: Line 22:
|parameter3values=
|parameter3values=
* Art
* Art
* Bbn
* Brd
* Brd
* Clr
* Clr
* Drd
* Drd
* Fvs
* Fvs
* Ftr
* dd
* Mnk
* Pal
* Pal
* Rgr
* Rgr
* Rog
* Sor
* Sor
* Wlk
* Wlk
Line 36: Line 35:
* R2 - SLA Rank 2
* R2 - SLA Rank 2
* R3 - SLA Rank 3
* R3 - SLA Rank 3
* [[Template:SpellCooldownClassGroup]] to group multiple classes with the same cooldown
}}
}}
</noinclude>
</noinclude>
<onlyinclude>'''Cooldown (<span style="Color: #00eeef">{{{1}}}s</span>):'''&nbsp; {{{2}}} {{#if: {{{3|}}}|&nbsp;({{SpellClassNameFromAbbr|{{{3}}}|True}})}}{{#if: {{{4|}}}|, {{{4}}} ({{SpellClassNameFromAbbr|{{{5}}}|True}})}}{{#if: {{{6|}}}|, {{{6}}} ({{SpellClassNameFromAbbr|{{{7}}}|True}})}}{{#if: {{{8|}}}|, {{{8}}} ({{SpellClassNameFromAbbr|{{{9}}}|True}})}}{{#if: {{{10|}}}|, {{{10}}} ({{SpellClassNameFromAbbr|{{{11}}}|True}})}}{{#if: {{{12|}}}|, {{{12}}} ({{SpellClassNameFromAbbr|{{{13}}}|True}})}}{{#if: {{{14|}}}|, {{{14}}} ({{SpellClassNameFromAbbr|{{{15}}}|True}})}}{{#if: {{{16|}}}|, {{{16}}} ({{SpellClassNameFromAbbr|{{{17}}}|True}})}}{{#if: {{{18|}}}|, {{{18}}} ({{SpellClassNameFromAbbr|{{{19}}}|True}})}}{{#if: {{{20|}}}|, {{{20}}} ({{SpellClassNameFromAbbr|{{{21}}}|True}})}}</onlyinclude>
<onlyinclude>'''Cooldown (<span style="Color: #00eeef">{{{1}}}s</span>):'''&nbsp; {{SpellCooldownClass|{{{2|}}}|{{{3|}}}}}{{#if: {{{4|}}}|{{SpellCooldownClass|{{{4|}}}|{{{5|}}}|True}}}}{{#if: {{{6|}}}|{{SpellCooldownClass|{{{6|}}}|{{{7|}}}|True}}}}{{#if: {{{8|}}}|{{SpellCooldownClass|{{{8|}}}|{{{9|}}}|True}}}}{{#if: {{{10|}}}|{{SpellCooldownClass|{{{10|}}}|{{{11|}}}|True}}}}{{#if: {{{12|}}}|{{SpellCooldownClass|{{{12|}}}|{{{13|}}}|True}}}}{{#if: {{{14|}}}|{{SpellCooldownClass|{{{14|}}}|{{{15|}}}|True}}}}{{#if: {{{16|}}}|{{SpellCooldownClass|{{{16|}}}|{{{17|}}}|True}}}}{{#if: {{{18|}}}|{{SpellCooldownClass|{{{18|}}}|{{{17|}}}|True}}}}{{#if: {{{20|}}}|{{SpellCooldownClass|{{{20|}}}|{{{12|}}}|True}}}}</onlyinclude>

Latest revision as of 02:15, 13 February 2025

SpellCooldown[edit]

This template is used to nicely format the cooldown that this spell has.

Example Usage
{{SpellCooldown|Second|10}}Cooldown (Seconds):  10
{{SpellCooldown|Second|4.5|Wiz|4|Sor}}Cooldown (Seconds):  4.5 (Wizard), 4 (Sorcerer)
{{SpellCooldown|Second|18|R1|12|R2|6|R3}}Cooldown (Seconds):  18 (Rank 1), 12 (Rank 2), 6 (Rank 3)
{{SpellCooldown|Second|2|{{SpellCooldownClassGroup|2|Brd|Wiz|Wlk}}|1.5|Sor}}Cooldown (Seconds):  2 (Bard, Wizard, Warlock), 1.5 (Sorcerer)

Usage[edit]

{{SpellCooldown|(Unit)|(Amount)|(Class)}}

Parameter Documentation
UnitThe Unit of time these are using
Possible Values:
  • Second
  • Minute
AmountThe number of units of time. This and the next can be repeated 10 times.
ClassThe class this time is specific to
Possible Values:
  • Art
  • Brd
  • Clr
  • Drd
  • Fvs
  • dd
  • Pal
  • Rgr
  • Sor
  • Wlk
  • Wiz
  • R1 - SLA Rank 1
  • R2 - SLA Rank 2
  • R3 - SLA Rank 3
  • Template:SpellCooldownClassGroup to group multiple classes with the same cooldown

Template

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


Cooldown ({{{1}}}s):