Template:Countdown/sandbox: Difference between revisions
Appearance
m More indenting |
Taking the number of days out of the if-true and if-false; removed previous debugging test |
||
| Line 1: | Line 1: | ||
<includeonly><div class="countdown-container"> | <includeonly><div class="countdown-container"> | ||
<!-- Debugging --> | <!-- Debugging --> | ||
<!-- No active debugging tests --> | |||
'''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}''' | |||
{{#ifeq: | {{#ifeq: | ||
| Line 8: | Line 10: | ||
{{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600 | {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600 | ||
)}} | )}} | ||
) / 86400)}} | ) / 86400)}} | 1 | ||
| 1 | | day | ||
| | | days | ||
}} | }} | ||
</div><!-- Need to figure out how to add optional parameters--></includeonly> | </div><!-- Need to figure out how to add optional parameters--></includeonly> | ||