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)
 
(36 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{#ifexpr:{{#time:U|October 13, 2011 + {{#expr:{{Fmp}} * 27}} days + {{#expr:{{Fmp}} * 12}} hours + {{#expr:({{Fmp}} - 1) * 2}} days}} <- {{#time:U|{{{1|now}}}}}|{{#ifexpr:{{#time:U|now}} < {{#time:U|October 13, 2011 + {{#expr:{{Fmp}} * 27}} days + {{#expr:{{Fmp}} * 12}} hours + {{#expr:({{Fmp}} - 0) * 2}} days}}
+
{{#if: {{#ifeq: {{lc:{{is event}}}} | scream fortress | 2 | {{{override|}}} }}
|1<!-- Full moon -->
+
| 2 <!-- Halloween holiday restriction overridden by Valve -->
|0<!-- No, past the full moon (typically this won't happen as the next phase will roll over)-->}}
+
| {{ #ifexpr: {{ #time:U|now }} >= {{ #time:U|{{ Fmc date|adjustment=0|offset=0 }} }} and
|0<!--No, too early for full moon -->}}
+
  {{ #time:U|{{ Fmc date|adjustment=1|offset=0 }} }} >= {{#time:U|now}}
 +
  | 1 <!-- Full moon -->
 +
  | 0 <!-- No, past the Full Moon -->
 +
}}
 +
| 0 <!-- No, too early for Full Moon -->
 +
}}<noinclude>[[Category:Full Moon templates]]</noinclude>

Latest revision as of 00:13, 3 October 2024

2