Difference between revisions of "Template:Countdown"

From Detective Conan Wiki
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | -0 | '''TODAY!!!''' | {{#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>
+
<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.
<noinclude>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>
  

Latest revision as of 23:29, 25 December 2024

Documentation icon Template documentation[create]

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 27751 days