Difference between revisions of "Template:SpellDuration"

From DDO Compendium
 
(6 intermediate revisions by the same user not shown)
Line 26: Line 26:
|parameter5description = This is the minimum duration for when the type is level, don't specify if there is no minumum
|parameter5description = This is the minimum duration for when the type is level, don't specify if there is no minumum
|parameter6name = Base duration
|parameter6name = Base duration
|parameter6description = This is the the base, if duration for when the type is level, the increase is on top of this value.
|parameter6description = This is the base, if duration for when the type is level, the increase is on top of this value.
|parameter7name = max level name
|parameter7description = This is maximum value for the level name.
}}
}}
</noinclude>
</noinclude>
Line 34: Line 36:
|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: {{{7|}}}|(max {{{7}}})}} {{#if: {{{5|}}}|(Minimum {{{5}}} {{PLURAL:{{{5}}}|{{{2}}}|{{{2}}}s}})}}|text= The duration of the spell gets longer the higher the {{#if: {{{4|}}}|{{{4}}}|caster}} level {{#if:{{{7|}}}| (max {{{7}}} {{#if: {{{4|}}}|{{{4}}}|caster}} level)}}|placement=bottom}}}}</onlyinclude>

Latest revision as of 23:29, 19 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)|(max level name)}}

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 base, if duration for when the type is level, the increase is on top of this value.
max level nameThis is maximum value for the level name.

Template

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