Template:Duration: Difference between revisions
Jump to navigation
Jump to search
(updated to handle 1-turn and permanent durations) |
m (update to support "Until Long Rest" duration) |
||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Duration Icons.png}} Duration: {{{1}}} {{#switch:{{{1|}}} | 1 = turn | Permanent = | permanent = | #default = turns}}</includeonly><noinclude> | <includeonly>{{SmallIcon|Duration Icons.png}} Duration: {{{1}}} {{#switch:{{{1|}}} | 1 = turn | Permanent = | permanent = | Until Long Rest = | until long rest = | #default = turns}}</includeonly><noinclude> | ||
Provide a number (in turns) and display that duration. | Provide a number (in turns) and display that duration. | ||
== Usage Examples == | == Usage Examples == | ||
=== Number of Turns === | |||
Usage: | Usage: | ||
<pre | <pre>{{Duration|1}}</pre> | ||
Result: | Result: | ||
Line 10: | Line 11: | ||
---- | ---- | ||
Usage: | Usage: | ||
<pre | <pre>{{Duration|3}}</pre> | ||
Result: | Result: | ||
{{Duration|3}} | {{Duration|3}} | ||
=== Alternative Usage: Until Long Rest === | |||
Alternative usage for '''Until Long Rest''' duration: | |||
<pre>{{Duration|Until Long Rest}}</pre> | |||
Result: | |||
{{Duration|Until Long Rest}} | |||
=== Alternative Usage: Permanent === | |||
Alternative usage for '''Permanent''' duration: | Alternative usage for '''Permanent''' duration: | ||
<pre | <pre>{{Duration|Permanent}}</pre> | ||
Result: | Result: | ||
{{Duration|Permanent}} | {{Duration|Permanent}} | ||
__NOTOC__</noinclude> | |||
</noinclude> |
Revision as of 08:55, 20 February 2023
Provide a number (in turns) and display that duration.
Usage Examples
Number of Turns
Usage:
{{Duration|1}}
Result: Duration: 1 turn
Usage:
{{Duration|3}}
Result: Duration: 3 turns
Alternative Usage: Until Long Rest
Alternative usage for Until Long Rest duration:
{{Duration|Until Long Rest}}
Result: Duration: Until Long Rest
Alternative Usage: Permanent
Alternative usage for Permanent duration:
{{Duration|Permanent}}
Result: Duration: Permanent