Template:Duration: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(updated to handle 1-turn and permanent durations)
(add drop shadow in light mode)
 
(6 intermediate revisions by 4 users not shown)
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|class=bg3wiki-lightmode-drop-shadow}} Duration: {{#switch:{{{1}}}
| 1 = 1 turn
| permanent
| Permanent = Permanent
| short rest
| Short rest
| Short Rest
| until short rest
| Until Short rest
| Until Short Rest = Until [[short rest]]
| long rest
| Long rest
| 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
}}</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><nowiki>{{Duration|1}}</nowiki></pre>
<pre>{{Duration|1}}</pre>


Result:
Result:
Line 10: Line 38:
----
----
Usage:
Usage:
<pre><nowiki>{{Duration|3}}</nowiki></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><nowiki>{{Duration|Permanent}}</nowiki></pre>
<pre>{{Duration|Permanent}}</pre>


Result:
Result:
{{Duration|Permanent}}
{{Duration|Permanent}}


</noinclude>
=== 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>

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