Difference between revisions of "Template:Countdown/sandbox"
From Detective Conan Wiki
m |
m (Indenting) |
||
Line 4: | Line 4: | ||
{{#ifeq: | {{#ifeq: | ||
− | {{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{{utc-offset|0 | + | {{#expr: ceil(( |
− | + | {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ( | |
− | + | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600 | |
+ | )}} | ||
+ | ) / 86400)}} | ||
+ | | 1 | ||
+ | | '''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' day | ||
+ | | '''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} }} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)) / 86400)}}''' days | ||
}} | }} | ||
</div><!-- Need to figure out how to add optional parameters--></includeonly> | </div><!-- Need to figure out how to add optional parameters--></includeonly> |