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

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
   (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}}=4 and {{LOCALDAY}} >= 12 and {{LOCALDAY}} <= 14|<!-- (if date is in range)
+
   -->{{#ifexpr:{{LOCALMONTH1}}=5 and {{LOCALDAY}} >= 27 and {{LOCALDAY}} <= 29|<!-- (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;"><!--

Revision as of 09:18, 12 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}}