Difference between pages "Template:Countdown" and "Template:Countdown/sandbox"

From Detective Conan Wiki
(Difference between pages)
Page 1
Page 2
 
m
 
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 | 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.
+
<includeonly><div class="countdown-container">
<pre>{{Countdown|December 31, 2100}}</pre>
+
<!-- Debugging -->
 +
<!-- No active debugging tests -->
  
Results in <br> {{Countdown|December 31, 2100}}
+
<!-- Days -->
 
+
'''{{#expr:
<!--NOTE: If there are '''1.4''' days remaining, it returns '''2''' days &c.-->
+
  ceil(
 
+
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
[[Category:Templates]]
+
  )
</noinclude>
+
}}'''
 +
{{#ifeq:
 +
  {{#expr:
 +
  ceil(
 +
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
 +
  )
 +
}} | 1
 +
  | day
 +
  | days
 +
}}
 +
</div></includeonly>