Difference between revisions of "Template:SpellDuration"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = Template:SpellDuration |description = This template is used to nicely format both the duration that a spell has. |category=Spell and...")
 
Line 16: Line 16:
* Perm/Permanant - The spell is permanent until dispelled, resting, or leaving quest
* Perm/Permanant - The spell is permanent until dispelled, resting, or leaving quest
* Level - The duration increases as the caster level increases
* Level - The duration increases as the caster level increases
* Dice - The duration is based on a dice roll
|parameter2name = Unit
|parameter2name = Unit
|parameter2description = The Unit of time these are using
|parameter2description = The Unit of time these are using
Line 30: Line 31:
<onlyinclude>{{#switch: {{lc:{{{1|}}}}}
<onlyinclude>{{#switch: {{lc:{{{1|}}}}}
|fixed={{{3}}} {{PLURAL:{{{3}}}|{{{2}}}|{{{2}}}s}}
|fixed={{{3}}} {{PLURAL:{{{3}}}|{{{2}}}|{{{2}}}s}}
|dice={{{3}}} {{{2}}}s
|inst|instantaneous={{#bootstrap_tooltip: Instantaneous|text= The spell has an instant effect, but it does not stick around.|placement=bottom}}
|inst|instantaneous={{#bootstrap_tooltip: Instantaneous|text= The spell has an instant effect, but it does not stick around.|placement=bottom}}
|perm|permanent={{#bootstrap_tooltip: Permanent|text= The spell does not end on its own, the receiver of the spell must do something for it to end.|placement=bottom}}
|perm|permanent={{#bootstrap_tooltip: Permanent|text= The spell does not end on its own, the receiver of the spell must do something for it to end.|placement=bottom}}
|level={{#bootstrap_tooltip:{{#if: {{{6|}}}|{{{6}}} {{PLURAL:{{{6}}}|{{{2}}}|{{{2}}}s}} +}} {{{3}}} {{PLURAL:{{{3}}}|{{{2}}}|{{{2}}}s}} per {{#if: {{{4|}}}|{{{4}}}|Caster}} Level {{#if: {{{5|}}}|(Minimum {{{5}}} {{PLURAL:{{{5}}}|{{{2}}}|{{{2}}}s}})}}|text= The duration of the spell gets longer the higher the caster level|placement=bottom}}}}</onlyinclude>
|level={{#bootstrap_tooltip:{{#if: {{{6|}}}|{{{6}}} {{PLURAL:{{{6}}}|{{{2}}}|{{{2}}}s}} +}} {{{3}}} {{PLURAL:{{{3}}}|{{{2}}}|{{{2}}}s}} per {{#if: {{{4|}}}|{{{4}}}|Caster}} Level {{#if: {{{5|}}}|(Minimum {{{5}}} {{PLURAL:{{{5}}}|{{{2}}}|{{{2}}}s}})}}|text= The duration of the spell gets longer the higher the caster level|placement=bottom}}}}</onlyinclude>

Revision as of 19:21, 14 July 2019

Template:SpellDuration[edit]

This template is used to nicely format both the duration that a spell has.

Example Usage
{{SpellDuration|Fixed|Second|10}}10 Seconds
{{SpellDuration|Inst}}Instantaneous
{{SpellDuration|Level|Second|10|Druid|180|60}}60 Seconds + 10 Seconds per Druid Level (Minimum 180 Seconds)

Usage[edit]

{{Template:SpellDuration|(Type)|(Unit)|(Amount)|(Level Name)|(Minimum duration)|(Base duration)}}

Parameter Documentation
TypeThe type of duration
Possible Values:
  • Fixed - The duration is a fixed time
  • Inst/Instantaneous - The duration is only for an instant, and then dissipates
  • Perm/Permanant - The spell is permanent until dispelled, resting, or leaving quest
  • Level - The duration increases as the caster level increases
  • Dice - The duration is based on a dice roll
UnitThe Unit of time these are using
AmountThe number of units
Level NameWhat causes the duration to increase when the type is level, default is "caster".
Minimum durationThis is the minimum duration for when the type is level, don't specify if there is no minumum
Base durationThis is the the base, if duration for when the type is level, the increase is on top of this value.

Template

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