Template:Duration: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "{{SmallIcon|Duration Icon.png}} Duration: {{{1}}} turns")
 
(updated to handle 1-turn and permanent durations)
Line 1: Line 1:
{{SmallIcon|Duration Icon.png}} Duration: {{{1}}} turns
<includeonly>{{SmallIcon|Duration Icons.png}} Duration: {{{1}}} {{#switch:{{{1|}}} | 1 = turn | Permanent =  | permanent =  | #default = turns}}</includeonly><noinclude>
Provide a number (in turns) and display that duration.
 
== Usage Examples ==
Usage:
<pre><nowiki>{{Duration|1}}</nowiki></pre>
 
Result:
{{Duration|1}}
----
Usage:
<pre><nowiki>{{Duration|3}}</nowiki></pre>
 
Result:
{{Duration|3}}
----
Alternative usage for '''Permanent''' duration:
<pre><nowiki>{{Duration|Permanent}}</nowiki></pre>
 
Result:
{{Duration|Permanent}}
 
</noinclude>

Revision as of 10:45, 18 February 2023

Provide a number (in turns) and display that duration.

Usage Examples

Usage:

{{Duration|1}}

Result: Duration: 1 turn


Usage:

{{Duration|3}}

Result: Duration: 3 turns


Alternative usage for Permanent duration:

{{Duration|Permanent}}

Result: Duration: Permanent