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)
 
(4 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 11: Line 11:
 
   (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}} >= 22 and {{LOCALDAY}} <= 24|<!-- (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;"><!--
Line 29: Line 29:
 
     -->{{#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;">
+
       --><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 06: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}}