Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
m
(Reverted to Bobo's template)
Line 1: Line 1:
 
<includeonly><div class="countdown-container">
 
<includeonly><div class="countdown-container">
{{#vardefine:timeDiff |
+
{{#ifeq:  
   {{#expr: {{#time:U|{{{1}}} {{{2}}} }} - {{#time:U}} }}
+
   {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | -0 | <big>
}}
+
  {{orange|'''TODAY!!!'''}}</big> |
 
+
      {{#ifeq:
{{#expr: ceil ({{#var:timeDiff}} / 86400) }}
+
        {{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}} | 1 |
{{#ifeq: {{#expr: ceil({{#var:timeDiff}} / 86400)}} | 1 | day | days }}
+
        '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' day |
 +
        '''{{#expr: ceil(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400)}}''' days }} }}
 
</div></includeonly>
 
</div></includeonly>

Revision as of 21:31, 26 December 2024