Template:Duration

From bg3.wiki
Jump to navigation Jump to search
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
  • Combat or Until end of combat

These special values are not case sensitive.

Examples

Markup Renders as
{{Duration|1}}
Duration Icons.pngDuration: 1 turn
{{Duration|5}}
Duration Icons.pngDuration: 5 turns
{{Duration|Until Long Rest}}
Duration Icons.pngDuration: Until long rest
{{Duration|PERMANENT}}
Duration Icons.pngDuration: Permanent
{{Duration|Whilst on surface}}
Duration Icons.pngDuration: Whilst on surface
{{Duration|Saving Throw}}
Duration Icons.pngDuration: Until successful saving throw
{{Duration|Until end of combat}}
Duration Icons.pngDuration: Until end of combat
{{Duration|10|compact=y}}
Duration Icons.png 10 turns
{{Duration|15|compact=y|text only=y}}
15 turns
{{Duration|short rest|links=no}}
Duration Icons.pngDuration: Until short rest

Template data

Display a nicely formatted duration

Template parameters[Edit template data]

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 Combat Until end of combat
Stringrequired
compactcompact

Display in a more compact form, omitting the "Duration:" text.

Suggested values
yes no
Default
no
Booleanoptional
linkslinks

Display links to certain game terms like "saving throw".

Suggested values
yes no
Default
yes
Booleanoptional
text onlytext only

If set, don't display any icon.

Stringoptional