Difference between revisions of "Template:If full moon"

From Team Fortress Wiki
Jump to: navigation, search
m
(Tag: Undo)
m (Merge changes from Template:If full moon 2 (deprecated))
Line 1: Line 1:
{{#if:{{{override|}}}
+
{{ #if:{{{ override| }}}
|2<!-- Halloween holiday restriction overridden by Valve for some reason (probably Halloween) -->
+
|2 <!-- Halloween holiday restriction overridden by Valve -->
| {{#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}}
+
|{{ #ifexpr: {{ #time:U|now }} >= {{ #time:U|{{ Fmc3|date-format=F d, Y H:i:s|adjustment=0|offset=0 }} }} and
|1<!-- Full moon -->
+
  {{ #time:U|{{ Fmc3|date-format=F d, Y H:i:s|adjustment=1|offset=0 }} }} >= {{#time:U|now}}
|0<!-- No, past the Full Moon (typically this won't happen as the next phase will roll over)-->}}
+
  |1 <!-- Full moon -->
|0<!--No, too early for Full Moon -->}}
+
  |0 <!-- No, past the Full Moon -->
 +
}}
 +
|0 <!--No, too early for Full Moon -->
 
}}<noinclude>[[Category:Full Moon templates]]</noinclude>
 
}}<noinclude>[[Category:Full Moon templates]]</noinclude>

Revision as of 17:13, 16 May 2021

0