Template:Countdown: Difference between revisions
Appearance
Very useful template, in case we want to use it for the main page |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="countdown-container">'''{{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 | <includeonly><div class="countdown-container">'''{{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' {{#ifeq: {{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | 1 | day | days }}</div></includeonly> | ||
<noinclude> | <noinclude>Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days. | ||
Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days. | |||
<pre>{{Countdown|December 31, 2100}}</pre> | <pre>{{Countdown|December 31, 2100}}</pre> | ||
Results in {{Countdown|December 31, 2100}} | Results in {{Countdown|December 31, 2100}} | ||
Revision as of 20:48, 25 December 2024
Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days.
{{Countdown|December 31, 2100}}Results in
27229 days