Template:Duration: Difference between revisions
Jump to navigation
Jump to search
Updated documentation and added more robust case-insensitive handling of special durations |
HiddenDragon (talk | contribs) mNo edit summary |
||
Line 49: | Line 49: | ||
} | } | ||
</templatedata>}} | </templatedata>}} | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 11:31, 19 January 2025
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
orShort rest
Until long rest
orLong rest
Until saving throw
orSaving throw
Surface
orWhilst 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}} | Long rest | Duration: Until
{{Duration|PERMANENT}} | Duration: Permanent |
{{Duration|Whilst on surface}} | Duration: Whilst on surface |
{{Duration|Saving Throw}} | Saving Throw | Duration: Until successful
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 |