Template:Countdown: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | -0 | <big>{{orange|'''TODAY!!!'''}}</big> | {{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | 1 | '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' day | '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' days }} }}</includeonly><noinclude>{{Documentation}}Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days. | <includeonly>{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | -0 | <big>{{orange|'''TODAY!!!'''}}</big> | {{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | 1 | In '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' day | In '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' days }} }}</includeonly><noinclude>{{Documentation}}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> | ||
Revision as of 19:52, 17 January 2025
| Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
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 In 27230 days