Difference between revisions of "Template:Countdown/sandbox"
From Detective Conan Wiki
(Reverted to Bobo's template) |
m (Added timeDiff variable (hopefully works)) |
||
Line 1: | Line 1: | ||
<includeonly><div class="countdown-container"> | <includeonly><div class="countdown-container"> | ||
− | {{# | + | {{#vardefine:timeDiff | {{#expr: {{#time:U|{{{1}}}}} - {{#time:U}} }} }} |
− | + | ||
− | + | {{#ifeq: {{#expr: ceil(({{timeDiff}}) / 86400)}} | -0 | | |
− | + | <big>{{orange|'''TODAY!!!'''}}</big> | | |
− | + | {{#ifeq: {{#expr: ceil(({{timeDiff}}) / 86400)}} | 1 | | |
− | + | '''{{#expr: ceil(({{timeDiff}}) / 86400)}}''' day | | |
− | + | '''{{#expr: ceil(({{timeDiff}}) / 86400)}}''' days }} }} | |
</div></includeonly> | </div></includeonly> |