Difference between revisions of "Template:SpellCooldownClass"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>{{TemplateDocumentation |name = SpellCooldownClass |description = This is a helper template is used to nicely format the class and cooldown for a single entry calle...") |
MNDeveloper (talk | contribs) |
||
Line 7: | Line 7: | ||
|example2 = <nowiki>{{SpellCooldownClass||{{SpellCooldownClassGroup|25|Art|Clr|FvS|Pal|Sor|Wiz}}|true}}</nowiki> | |example2 = <nowiki>{{SpellCooldownClass||{{SpellCooldownClassGroup|25|Art|Clr|FvS|Pal|Sor|Wiz}}|true}}</nowiki> | ||
|example2output = {{SpellCooldownClass|2|{{SpellCooldownClassGroup|2|Brd|Wiz|Wlk}}|true}} | |example2output = {{SpellCooldownClass|2|{{SpellCooldownClassGroup|2|Brd|Wiz|Wlk}}|true}} | ||
|example3 = <nowiki>{{SpellCooldownClass|10}}</nowiki> | |||
|example3output = {{SpellCooldownClass|10}} | |||
|parameter1name = cooldown | |parameter1name = cooldown | ||
|parameter1description = The actual cooldown for this group | |parameter1description = The actual cooldown for this group | ||
Line 28: | Line 30: | ||
}} | }} | ||
</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> |
Revision as of 18:05, 1 July 2019
SpellCooldownClass[edit]
This is a helper template is used to nicely format the class and cooldown for a single entry called by the SpellCooldown template
Example Usage | |
{{SpellCooldownClass|10|Art}} | 10 (Artificer) |
{{SpellCooldownClass||{{SpellCooldownClassGroup|25|Art|Clr|FvS|Pal|Sor|Wiz}}|true}} | , 2 (Bard, Wizard, Warlock) |
{{SpellCooldownClass|10}} | 10 |
Usage[edit]
{{SpellCooldownClass|(cooldown)|(Class)|(comma)}}
Parameter Documentation | |
cooldown | The actual cooldown 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}}}