Difference between revisions of "Template:On this day if"

From Co-Optitude Wiki
Jump to navigation Jump to search
m (Rocketsoup moved page Template:OnThisDayIf to Template:On this day if)
Line 12: Line 12:
 
-->{{#vardefine:airDay|{{#time:j|{{{AirDate}}} }} }}<!--
 
-->{{#vardefine:airDay|{{#time:j|{{{AirDate}}} }} }}<!--
 
-->{{#ifexpr: {{LOCALMONTH1}} = {{#var:airMonth}} and {{LOCALDAY}}={{#var:airDay}}|<!-- (if today matches passed M/D)
 
-->{{#ifexpr: {{LOCALMONTH1}} = {{#var:airMonth}} and {{LOCALDAY}}={{#var:airDay}}|<!-- (if today matches passed M/D)
   -->'''On this day {{CURRENTMONTHNAME}} {{Ordinal|{{CURRENTDAY}}}}'''
+
   -->==On this day==
  
* '''{{#var:airYear}}''': <!--
+
* '''{{#dateformat:{{{AirDate|}}}|mdy}}''': <!--
 
   -->{{#ifeq:{{#sub:{{{EpNum}}}|0|1}}|F|<!-- (if Flog episode)
 
   -->{{#ifeq:{{#sub:{{{EpNum}}}|0|1}}|F|<!-- (if Flog episode)
 
     -->{{#vardefine:flogEpNum|{{#expr:1 * {{#sub:{{{EpNum}}}|1}} }} }}<!--
 
     -->{{#vardefine:flogEpNum|{{#expr:1 * {{#sub:{{{EpNum}}}|1}} }} }}<!--

Revision as of 11:01, 27 April 2020

Shows an "on this day" block for an episode if today is its air date. Sub-template of Template:On this day which uses one of these for each anniversary of note.

Usage:

{{On this day if|AirDate=2013-02-18|EpNum=F43|Games=Mortal Kombat; Shaq Fu}}
  • EpNum is a 3-character episode number, like 003 for a Co-Optitude episode or F43 for a Flog episode