Template:Duration: Difference between revisions

Template page
m (Reformatted to mimic Template:Recharge)
(add drop shadow in light mode)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{SmallIcon|Duration Icons.png}} Duration: {{#switch:{{{1}}}
<includeonly>{{SmallIcon|Duration Icons.png|class=bg3wiki-lightmode-drop-shadow}} Duration: {{#switch:{{{1}}}
| 1 = 1 turn
| 1 = 1 turn
| permanent
| permanent
| Permanent = Permanent
| Permanent = Permanent
| short rest
| short rest
| Short rest
| Short Rest
| Short Rest
| until short rest
| until short rest
| Until Short Rest = Until [[Short Rest]]
| Until Short rest
| Until Short Rest = Until [[short rest]]
| long rest
| long rest
| Long rest
| Long Rest
| Long Rest
| until long rest
| until long rest
| Until Long Rest = Until [[Long Rest]]
| Until Long rest
| Until Long Rest = Until [[Long rest]]
| saving throw
| Saving throw
| Saving Throw
| until saving throw
| Until Saving throw
| Until Saving Throw = Until successful [[Saving Throw]]
| surface
| Surface
| whilst on surface
| Whilst on surface = Whilst on surface
| #default = {{{1}}} turns
| #default = {{{1}}} turns
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 42: Line 56:
Result:
Result:
{{Duration|Permanent}}
{{Duration|Permanent}}
=== Alternative Usage: Whilst on surface ===
Alternative usage for '''Whilst on surface''' duration:
<pre>{{Duration|Whilst on surface}}</pre>
Result:
{{Duration|Whilst on surface}}
=== Alternative Usage: Until Saving Throw ===
Alternative usage for '''Until Saving Throw''' duration:
<pre>{{Duration|Saving Throw}}</pre>
Result:
{{Duration|Saving Throw}}
__NOTOC__</noinclude>
__NOTOC__</noinclude>

Latest revision as of 15:39, 27 November 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

Alternative Usage: Whilst on surface

Alternative usage for Whilst on surface duration:

{{Duration|Whilst on surface}}

Result: Duration: Whilst on surface

Alternative Usage: Until Saving Throw

Alternative usage for Until Saving Throw duration:

{{Duration|Saving Throw}}

Result: Duration: Until successful Saving Throw