Difference between revisions of "Template:If full moon"

From Team Fortress Wiki
Jump to: navigation, search
m
m (use {{is event}} for scream fortress fm)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if:{{{override|}}}
+
{{#if: {{#ifeq: {{lc:{{is event}}}} | scream fortress | 2 | {{{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|{{ Fmc date|adjustment=0|offset=0 }} }} and
|1<!-- Full moon -->
+
  {{ #time:U|{{ Fmc date|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>

Latest revision as of 00:13, 3 October 2024

2