Difference between revisions of "Template:SpellCooldown"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = SpellCooldown |description = This template is used to nicely format the cooldown that this spell has. |category=Spell and Feat Templ...")
 
Line 7: Line 7:
|example2 = <nowiki>{{SpellCooldown|Second|4.5|Wiz|4|Sor}}</nowiki>
|example2 = <nowiki>{{SpellCooldown|Second|4.5|Wiz|4|Sor}}</nowiki>
|example2output = {{SpellCooldown|Second|4.5|Wiz|4|Sor}}
|example2output = {{SpellCooldown|Second|4.5|Wiz|4|Sor}}
|example3 = <nowiki>{{SpellCooldown|Second|18|R1|12|R2|6|R3}}</nowiki>
|example3output = {{SpellCooldown|Second|18|R1|12|R2|6|R3}}
|parameter1name = Unit
|parameter1name = Unit
|parameter1description = The Unit of time these are using
|parameter1description = The Unit of time these are using
Line 31: Line 33:
* Wlk
* Wlk
* Wiz
* Wiz
* R1 - SLA Rank 1
* R2 - SLA Rank 2
* R3 - SLA Rank 3
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{{2}}} {{PLURAL:{{{2}}}|{{{1}}}|{{{1}}}s}}{{#if: {{{3|}}}|&nbsp;([[{{ClassNameFromAbbr|{{{3}}}}}]])}}{{#if: {{{4|}}}|, {{{4}}} {{PLURAL:{{{4}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{5}}}}}]])}}{{#if: {{{6|}}}|, {{{6}}} {{PLURAL:{{{6}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{7}}}}}]])}}{{#if: {{{8|}}}|, {{{8}}} {{PLURAL:{{{8}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{9}}}}}]])}}{{#if: {{{10|}}}|, {{{10}}} {{PLURAL:{{{10}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{11}}}}}]])}}{{#if: {{{12|}}}|, {{{12}}} {{PLURAL:{{{12}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{13}}}}}]])}}{{#if: {{{14|}}}|, {{{14}}} {{PLURAL:{{{14}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{15}}}}}]])}}{{#if: {{{16|}}}|, {{{16}}} {{PLURAL:{{{16}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{17}}}}}]])}}{{#if: {{{18|}}}|, {{{18}}} {{PLURAL:{{{18}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{19}}}}}]])}}{{#if: {{{20|}}}|, {{{20}}} {{PLURAL:{{{20}}}|{{{1}}}|{{{1}}}s}} ([[{{ClassNameFromAbbr|{{{21}}}}}]])}}
<onlyinclude>{{{2}}} {{PLURAL:{{{2}}}|{{{1}}}|{{{1}}}s}}{{#if: {{{3|}}}|&nbsp;({{SpellClassNameFromAbbr|{{{3}}}|True}})}}{{#if: {{{4|}}}|, {{{4}}} {{PLURAL:{{{4}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{5}}}|True}})}}{{#if: {{{6|}}}|, {{{6}}} {{PLURAL:{{{6}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{7}}}|True}})}}{{#if: {{{8|}}}|, {{{8}}} {{PLURAL:{{{8}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{9}}}|True}})}}{{#if: {{{10|}}}|, {{{10}}} {{PLURAL:{{{10}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{11}}}|True}})}}{{#if: {{{12|}}}|, {{{12}}} {{PLURAL:{{{12}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{13}}}|True}})}}{{#if: {{{14|}}}|, {{{14}}} {{PLURAL:{{{14}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{15}}}|True}})}}{{#if: {{{16|}}}|, {{{16}}} {{PLURAL:{{{16}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{17}}}|True}})}}{{#if: {{{18|}}}|, {{{18}}} {{PLURAL:{{{18}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{19}}}|True}})}}{{#if: {{{20|}}}|, {{{20}}} {{PLURAL:{{{20}}}|{{{1}}}|{{{1}}}s}} ({{SpellClassNameFromAbbr|{{{21}}}|True}})}}</onlyinclude>
</onlyinclude>

Revision as of 19:15, 27 June 2019

SpellCooldown[edit]

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

Example Usage
{{SpellCooldown|Second|10}}10 Seconds
{{SpellCooldown|Second|4.5|Wiz|4|Sor}}4.5 Seconds (Wizard), 4 Seconds (Sorcerer)
{{SpellCooldown|Second|18|R1|12|R2|6|R3}}18 Seconds (Rank 1), 12 Seconds (Rank 2), 6 Seconds (Rank 3)

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
  • Bbn
  • Brd
  • Clr
  • Drd
  • Fvs
  • Ftr
  • Mnk
  • Pal
  • Rgr
  • Rog
  • Sor
  • Wlk
  • Wiz
  • R1 - SLA Rank 1
  • R2 - SLA Rank 2
  • R3 - SLA Rank 3

Template

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


{{{2}}} {{{1}}}s