3,890
editsAd placeholder
Template:Duration: Difference between revisions
Jump to navigation
Jump to search
m
update to support "Until Long Rest" duration
(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> |