Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
m
m (Added timeDiff variable)
Line 1: Line 1:
 
<!-- <includeonly><div class="countdown-container">
 
<!-- <includeonly><div class="countdown-container">
'''{{#expr: ceil(({{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}) / 86400)}}'''
+
{{#vardefine:timeDiff | {{#time:U|{{{1}}} {{{2}}}}} - {{#time:U}}}}
 +
 
 +
'''{{#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:42, 26 December 2024


Test