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

From Co-Optitude Wiki
Jump to navigation Jump to search
m (Rocketsoup moved page Template:CoopAnniversary to Template:Co-Optitude anniversary check: Standardizing template naming)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Checks if today is on or near the Co-Optitude episode 1 anniversary and displays a callout box if so. Displays nothing if not.
+
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:
 
Usage:
 
<pre>
 
<pre>
{{CoopAnniversary}}
+
{{Co-Optitude anniversary check}}
 
</pre>
 
</pre>
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Line 26: Line 26:
 
   (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;"><!--
       --><div style="display: inline-block; background-color: #eeeeff; border: 1px solid #666699; padding: 1em; max-width: 20em;">
+
       --><div style="display: inline-block; background-color: #eeeeff; border: 1px solid #666699; padding: 1em; max-width: 40em;">
 
<span style="font-size: 1.5em; font-weight: bold;">Happy {{Ordinal|{{#var:ageYears}}}} anniversary of Felicia and Ryon's first [[The Flog]] segment together!</span>
 
<span style="font-size: 1.5em; font-weight: bold;">Happy {{Ordinal|{{#var:ageYears}}}} anniversary of Felicia and Ryon's first [[The Flog]] segment together!</span>
  

Latest revision as of 07:02, 25 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:

{{Co-Optitude anniversary check}}