Difference between revisions of "Template:Did you know/Queue/LocalUpdateTimes/Helper"

From blackwiki
Jump to navigation Jump to search
imported>Schierbecker
(here goes)
imported>Ravenpuff
(+ nbsp between day and month; force line break before time)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#time: j F h:i A|{{Did_you_know/Next_update/Time}} + {{#expr:  
+
<includeonly>{{#time:j"&nbsp;"F"<br>"H:i|{{Did you know/Next update/Time}} + {{#expr:  
{{{offset}}} * {{User:DYKUpdateBot/Time Between Updates}} }} seconds {{#switch: {{{location}}}
+
{{{offset}}} * {{User:DYKUpdateBot/Time Between Updates}}}} seconds {{#switch: {{{location}}}
 
  | Los Angeles = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0314080000 - {{#time: w | {{CURRENTYEAR}}0314080000 }} days}}080000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}11{{#time: d | {{CURRENTYEAR}}1107070000 - {{#time: w | {{CURRENTYEAR}}1107070000 }} days}}070000 | -7 hours | -8 hours}}
 
  | Los Angeles = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0314080000 - {{#time: w | {{CURRENTYEAR}}0314080000 }} days}}080000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}11{{#time: d | {{CURRENTYEAR}}1107070000 - {{#time: w | {{CURRENTYEAR}}1107070000 }} days}}070000 | -7 hours | -8 hours}}
  | Chicago = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0314080000 - {{#time: w | {{CURRENTYEAR}}0314080000 }} days}}080000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}11{{#time: d | {{CURRENTYEAR}}1107070000 - {{#time: w | {{CURRENTYEAR}}1107070000 }} days}}070000 | -5 hours | -6 hours}}
+
  | New York = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0314080000 - {{#time: w | {{CURRENTYEAR}}0314080000 }} days}}080000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}11{{#time: d | {{CURRENTYEAR}}1107070000 - {{#time: w | {{CURRENTYEAR}}1107070000 }} days}}070000 | -4 hours | -5 hours}}
 
  | London = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0331010000 - {{#time: w | {{CURRENTYEAR}}0331010000 }} days}}010000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}10{{#time: d | {{CURRENTYEAR}}1031010000 - {{#time: w | {{CURRENTYEAR}}1031010000 }} days}}010000 | +1 hour | +0 hours}}
 
  | London = {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{CURRENTYEAR}}03{{#time: d | {{CURRENTYEAR}}0331010000 - {{#time: w | {{CURRENTYEAR}}0331010000 }} days}}010000 and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}10{{#time: d | {{CURRENTYEAR}}1031010000 - {{#time: w | {{CURRENTYEAR}}1031010000 }} days}}010000 | +1 hour | +0 hours}}
 
  | New Delhi = + 5 hours + 30 minutes
 
  | New Delhi = + 5 hours + 30 minutes
Line 9: Line 9:
 
  | {{{location}}}
 
  | {{{location}}}
 
}}
 
}}
}}<noinclude>
+
}}</includeonly><noinclude>
 
{{Documentation|content=This is a helper template for [[Template:Did you know/Queue/LocalUpdateTimes]] and '''should not be deleted'''. It is normal for this page to show "Error:invalid time".}}
 
{{Documentation|content=This is a helper template for [[Template:Did you know/Queue/LocalUpdateTimes]] and '''should not be deleted'''. It is normal for this page to show "Error:invalid time".}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:29, 11 September 2019

50px Template documentation

This is a helper template for Template:Did you know/Queue/LocalUpdateTimes and should not be deleted. It is normal for this page to show "Error:invalid time".