Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Duration

Template page
Revision as of 00:34, 22 July 2024 by NtCarlson (talk | contribs) (Updated documentation and added more robust case-insensitive handling of special durations)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation

Display a nicely formatted duration.

The duration can be a number of turns or one of the special values below:

  • Permanent
  • Until short rest or Short rest
  • Until long rest or Long rest
  • Until saving throw or Saving throw
  • Surface or Whilst on surface

These special values are not case sensitive.

Examples

Markup Renders as
{{Duration|1}}
Duration: 1 turn
{{Duration|5}}
Duration: 5 turns
{{Duration|Until Long Rest}}
Duration: Until Long rest
{{Duration|PERMANENT}}
Duration: Permanent
{{Duration|Whilst on surface}}
Duration: Whilst on surface
{{Duration|Saving Throw}}
Duration: Until successful Saving Throw

Template data

Display a nicely formatted duration

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
duration1

Duration specified as a number of turns or one of the special values below.

Suggested values
Permanent Short rest Until short rest Long rest Until long rest Saving throw Until saving throw Surface Whilst on surface
Stringrequired