Difference between revisions of "Template:On this day if"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
Line 10: | Line 10: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | {{#vardefine:airYear|{{#time:Y|{{{AirDate}}} }} }} | + | ( |
− | {{#vardefine:airMonth|{{#time:n|{{{AirDate}}} }} }} | + | {{#vardefine:airYear|{{#time:Y|{{{AirDate}}} }} }}Y={{#var:airYear}}, |
− | {{#vardefine:airDay|{{#time:j|{{{AirDate}}} }} }} | + | {{#vardefine:airMonth|{{#time:n|{{{AirDate}}} }} }}M={{#var:airMonth}}, |
− | {{#ifexpr: | + | {{#vardefine:airDay|{{#time:j|{{{AirDate}}} }} }}D={{#var:airDay}}, |
+ | {{#ifexpr: {{LOCALMONTH1}} = {{#var:airMonth}} and {{LOCALDAY}}={{#var:airDay}}| | ||
<div style="background-color: #eeeeff; border: 1px solid #666699; padding: 1em;"> | <div style="background-color: #eeeeff; border: 1px solid #666699; padding: 1em;"> | ||
{{#ifeq:{{#sub:{{{EpNum}}}|0|1}}|F| | {{#ifeq:{{#sub:{{{EpNum}}}|0|1}}|F| | ||
Line 23: | Line 24: | ||
}} | }} | ||
</div> | </div> | ||
− | }}</includeonly> | + | }})</includeonly> |
Revision as of 07:42, 12 April 2020
Shows a "on this day" block for an episode if today is its air date.
Usage:
{{OnThisDayIf|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