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}}} * 3600)}}) / 86400)}} | 1 |  
+
   {{#expr: ceil((
  '''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - ({{{utc-offset|0}}} * 3600)}}) / 86400)}}''' day |  
+
      {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
  '''{{#expr: ceil(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} }} - ({{{utc-offset|0}}} * 3600)) / 86400)}}''' days
+
        {{#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>

Revision as of 22:41, 31 December 2024