Difference between revisions of "Template:If full moon"

From Team Fortress Wiki
Jump to: navigation, search
m (use {{is event}} for scream fortress fm)
 
(30 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#if:{{{override|1}}}
+
{{#if: {{#ifeq: {{lc:{{is event}}}} | scream fortress | 2 | {{{override|}}} }}
|2<!--Overridden by Valve for some reason (probably Halloween) -->
+
| 2 <!-- Halloween holiday restriction overridden by Valve -->
| {{#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}}
+
| {{ #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 -->
}}<noinclude>
+
}}
 
+
| 0 <!-- No, too early for Full Moon -->
[[Category:Expression templates]]</noinclude>
+
}}<noinclude>[[Category:Full Moon templates]]</noinclude>

Latest revision as of 00:13, 3 October 2024

0