Difference between revisions of "Template:Countdown/sandbox"

From Detective Conan Wiki
m
m (Removed hours, more indenting revisions)
Line 4: Line 4:
  
 
<!-- Days -->
 
<!-- Days -->
'''{{#expr: floor(({{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
+
'''{{#expr:
  {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}) / 86400)}}'''
+
  floor(
 +
      ({{#expr:
 +
        {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} -  
 +
      ({{#if:
 +
        {{{utc-offset|}}}|{{{utc-offset}}}|0
 +
      }} * 3600)
 +
      }}) / 86400
 +
  )
 +
}}'''
 
{{#ifeq:
 
{{#ifeq:
   {{#expr: floor((
+
   {{#expr:
       {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
+
       floor(
         {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600)}}
+
         ({{#expr:
  ) / 86400)}} | 1
+
            {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} -  
  | day
+
         ({{#if:
  | days
+
             {{{utc-offset|}}}|{{{utc-offset}}}|0
}}
+
        }} * 3600)
 
+
        }}) / 86400
<!-- Hours -->
+
       )
'''{{#expr: floor((
+
   }} | 1
      {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
 
         {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} -(86400*floor(
 
             {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
 
              {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}})
 
            }}
 
        )/86400)))/3600
 
  )'''
 
 
 
{{#ifeq:
 
  {{#expr: floor((
 
      {{#expr: {{#time:U| {{{end-date}}} {{{end-time}}} }} - {{#time:U}} - (
 
        {{#if:{{{utc-offset|}}}|{{{utc-offset}}}|0}} * 3600
 
       )}}
 
   ) / 86400)}} | 1
 
 
   | day
 
   | day
 
   | days
 
   | days
 
}}
 
}}
 
</div></includeonly>
 
</div></includeonly>

Revision as of 21:11, 1 January 2025