Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
m (Added timeDiff variable (hopefully works))
m
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="countdown-container">
 
<includeonly><div class="countdown-container">
{{#vardefine:timeDiff | {{#expr: {{#time:U|{{{1}}}}} - {{#time:U}} }} }}
+
<!-- Debugging -->
 +
<!-- No active debugging tests -->
  
{{#ifeq: {{#expr: ceil(({{timeDiff}}) / 86400)}} | -0 |  
+
<!-- Days -->
    <big>{{orange|'''TODAY!!!'''}}</big> |
+
'''{{#expr:
    {{#ifeq: {{#expr: ceil(({{timeDiff}}) / 86400)}} | 1 |
+
  ceil(
        '''{{#expr: ceil(({{timeDiff}}) / 86400)}}''' day |  
+
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
        '''{{#expr: ceil(({{timeDiff}}) / 86400)}}''' days }} }}
+
  )
 +
}}'''
 +
{{#ifeq:
 +
  {{#expr:
 +
  ceil(
 +
      {{timeDiff|{{{end-date}}}|{{{end-time}}}|{{{utc-offset}}} }} / 86400
 +
  )
 +
}} | 1
 +
  | day
 +
  | days
 +
}}
 
</div></includeonly>
 
</div></includeonly>

Latest revision as of 22:21, 1 January 2025