69,194
edits
m
no edit summary
m (update to support "Until Long Rest" duration) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Duration Icons.png}} Duration: {{{ | <includeonly>{{SmallIcon|Duration Icons.png|class=bg3wiki-lightmode-drop-shadow}} Duration: {{#switch:{{lc:{{{1}}}}} | ||
| 1 = 1 turn | |||
| permanent = Permanent | |||
| short rest | |||
| until short rest = Until [[short rest]] | |||
| long rest | |||
| until long rest = Until [[Long rest]] | |||
| saving throw | |||
| until saving throw = Until successful [[Saving Throw]] | |||
| surface | |||
| whilst on surface = Whilst on surface | |||
| #default = {{{1}}} turns | |||
}}</includeonly><noinclude>{{documentation|content= | |||
__NOTOC__ | |||
Display a nicely formatted duration. | |||
The duration can be a number of turns or one of the special values below: | |||
* {{c|Permanent}} | |||
* {{c|Until short rest}} or {{c|Short rest}} | |||
* {{c|Until long rest}} or {{c|Long rest}} | |||
* {{c|Until saving throw}} or {{c|Saving throw}} | |||
* {{c|Surface}} or {{c|Whilst on surface}} | |||
These special values are not case sensitive. | |||
== Examples == | |||
{{Duration|1}} | {{Template demo | ||
| <nowiki>{{Duration|1}}</nowiki> | |||
| <nowiki>{{Duration|5}}</nowiki> | |||
< | | <nowiki>{{Duration|Until Long Rest}}</nowiki> | ||
| <nowiki>{{Duration|PERMANENT}}</nowiki> | |||
| <nowiki>{{Duration|Whilst on surface}}</nowiki> | |||
| <nowiki>{{Duration|Saving Throw}}</nowiki> | |||
}} | |||
== Template data == | |||
<templatedata> | |||
{ | |||
== | "description": "Display a nicely formatted duration", | ||
"format": "inline", | |||
< | "params": { | ||
"1": { | |||
"description": "Duration specified as a number of turns or one of the special values below.", | |||
{{Duration | "suggestedvalues": ["Permanent", "Short rest", "Until short rest", "Long rest", "Until long rest", "Saving throw", "Until saving throw", "Surface", "Whilst on surface"], | ||
"required": true, | |||
"label": "duration", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata>}} | |||
[[Category:Templates]] | |||
</noinclude> |