Difference between revisions of "Template:If full moon"

From Team Fortress Wiki
Jump to: navigation, search
m (too slow, mortal!)
(Presently, The Upcoming Full Moons dates seem close, but the Template:If_full_moon has seemed to be firing two days too soon. This edit is possibly a temporary fix for testing)
Line 1: Line 1:
 
{{#if:{{{override|}}}
 
{{#if:{{{override|}}}
 
|2<!--Overridden by Valve for some reason (probably Halloween) -->
 
|2<!--Overridden by Valve for some reason (probably Halloween) -->
| {{#ifexpr:{{#time:U|October 13, 2011 + {{#expr:{{Fmp2}} * 27}} days + {{#expr:{{Fmp2}} * 12}} hours + {{#expr:({{Fmp2}} - 1) * 2}} days}} <= {{#time:U|{{{1|now}}}}}|{{#ifexpr:{{#time:U|now}} < {{#time:U|October 13, 2011 + {{#expr:{{Fmp2}} * 27}} days + {{#expr:{{Fmp2}} * 12}} hours + {{#expr:({{Fmp2}} - 0) * 2}} days}}
+
| {{#ifexpr:{{#time:U|October 15, 2011 + {{#expr:{{Fmp2}} * 27}} days + {{#expr:{{Fmp2}} * 12}} hours + {{#expr:({{Fmp2}} - 1) * 2}} days}} <= {{#time:U|{{{1|now}}}}}|{{#ifexpr:{{#time:U|now}} < {{#time:U|October 15, 2011 + {{#expr:{{Fmp2}} * 27}} days + {{#expr:{{Fmp2}} * 12}} hours + {{#expr:({{Fmp2}} - 0) * 2}} days}}
 
  |1<!-- Full moon -->
 
  |1<!-- Full moon -->
 
  |0<!-- No, past the full moon (typically this won't happen as the next phase will roll over)-->}}
 
  |0<!-- No, past the full moon (typically this won't happen as the next phase will roll over)-->}}

Revision as of 02:20, 7 May 2017

0