Difference between revisions of "Template:If full moon"

From Team Fortress Wiki
Jump to: navigation, search
(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)
m (use {{is event}} for scream fortress fm)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if:{{{override|}}}
+
{{#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 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 -->
}}<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

2