Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
m
m
Line 1: Line 1:
 
<includeonly><div class="countdown-container">
 
<includeonly><div class="countdown-container">
{{#vardefine:timeDiff | {{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}}}}}
+
{{#vardefine:timeDiff |  
 +
  {{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}
 +
}}
  
 
'''{{#expr: ceil(({{#var:timeDiff}}) / 86400)}}'''
 
'''{{#expr: ceil(({{#var:timeDiff}}) / 86400)}}'''
 
{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}) / 86400)}} | 1 | day | days }}
 
{{#ifeq: {{#expr: ceil(({{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}) / 86400)}} | 1 | day | days }}
 
</div></includeonly>
 
</div></includeonly>

Revision as of 18:47, 26 December 2024