Difference between revisions of "Template:Co-Optitude anniversary check"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
</pre>
 
</pre>
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 +
 
   Co-Optitude anniversary
 
   Co-Optitude anniversary
 
   (Anniversary is 2013-05-27. Celebrate on the day and for a couple days after.)
 
   (Anniversary is 2013-05-27. Celebrate on the day and for a couple days after.)
   -->{{#ifexpr:{{LOCALMONTH1}}=5 and {{LOCALDAY}} >= 27 and {{LOCALDAY}} <= 29|<!-- (if date is in range)
+
 
 +
   -->{{#ifexpr:{{LOCALMONTH1}}=4 and {{LOCALDAY}} >= 22 and {{LOCALDAY}} <= 24|<!-- (if date is in range)
 
     -->{{#vardefine:ageYears|{{#expr:{{LOCALYEAR}}-2013}}}}<!--
 
     -->{{#vardefine:ageYears|{{#expr:{{LOCALYEAR}}-2013}}}}<!--
 
     --><div style="text-align: center; margin: 1em 0;"><!--
 
     --><div style="text-align: center; margin: 1em 0;"><!--
Line 15: Line 17:
 
<span style="font-size: 1.5em; font-weight: bold;">Happy {{Ordinal|{{#var:ageYears}}}} anniversary to Co-Optitude!</span>
 
<span style="font-size: 1.5em; font-weight: bold;">Happy {{Ordinal|{{#var:ageYears}}}} anniversary to Co-Optitude!</span>
  
<span style="float: right; margin-left: 1em;">[[File:Episode 1 title card.jpg|100px|none|link=Episode 1|Episode 1]]</span>The first episode,  
+
<span style="float: right; margin-left: 1em;">[[File:Episode 1 title card.jpg|100px|none|link=Episode 1|Episode 1]]</span><div style="text-align: left;">The [[Episode 1|first episode]],  
Golden Axe II, aired {{#dateformat:2013-05-27|mdy}}.<!--
+
Golden Axe II, aired {{#dateformat:2013-05-27|mdy}}.</div><!--
 
       --></div><!--
 
       --></div><!--
 
     --></div><!--
 
     --></div><!--
Line 23: Line 25:
 
   The Flog anniversary
 
   The Flog anniversary
 
   (Anniversary is 2012-04-09. Celebrate on the day and for a couple days after.)
 
   (Anniversary is 2012-04-09. Celebrate on the day and for a couple days after.)
   -->{{#ifexpr:{{LOCALMONTH1}}=4 and {{LOCALDAY}} >= 22 and {{LOCALDAY}} <= 24|<!-- (if date is in range)
+
 
 +
   -->{{#ifexpr:{{LOCALMONTH1}}=4 and {{LOCALDAY}} >= 9 and {{LOCALDAY}} <= 11|<!-- (if date is in range)
 
     -->{{#vardefine:ageYears|{{#expr:{{LOCALYEAR}}-2012}}}}<!--
 
     -->{{#vardefine:ageYears|{{#expr:{{LOCALYEAR}}-2012}}}}<!--
 
     --><div style="text-align: center; margin: 1em 0;"><!--
 
     --><div style="text-align: center; margin: 1em 0;"><!--

Revision as of 06:39, 22 April 2020

Checks if today is on or near the Co-Optitude episode 1 anniversary and displays a callout box if so. Displays nothing if not.

Usage:

{{CoopAnniversary}}