Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
(Moved my draft of the new countdown to this sandbox)
 
m
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''{{#expr: ceil(({{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}) / 86400)}}'''
+
<includeonly><div class="countdown-container">
{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}) / 86400)}} | 1 | day | days }}
+
<!-- Debugging -->
 +
<!-- No active debugging tests -->
 +
 
 +
<!-- Days -->
 +
'''{{#expr:
 +
  ceil(
 +
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
 +
  )
 +
}}'''
 +
{{#ifeq:
 +
  {{#expr:
 +
  ceil(
 +
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
 +
  )
 +
}} | 1
 +
  | day
 +
  | days
 +
}}
 +
</div></includeonly>

Latest revision as of 22:21, 1 January 2025