Template:Duration
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:
PermanentUntil short restorShort restUntil long restorLong restUntil saving throworSaving throwSurfaceorWhilst on surfaceCombatorUntil end of combat
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 |
{{Duration|Until end of combat}} | Duration: Until end of combat |
{{Duration|10|compact=y}} | 10 turns |
{{Duration|15|compact=y|text only=y}} | 15 turns |
{{Duration|short rest|links=no}} | Duration: Until short rest |
Template data
Display a nicely formatted duration
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| duration | 1 | Duration specified as a number of turns or one of the special values below.
| String | required |
| compact | compact | Display in a more compact form, omitting the "Duration:" text.
| Boolean | optional |
| links | links | Display links to certain game terms like "saving throw".
| Boolean | optional |
| text only | text only | If set, don't display any icon. | String | optional |
