Difference between revisions of "Template:CalFillAugust"

From Nookipedia, the Animal Crossing wiki
m (adding Ace and Tiansheng)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:curYear|{{{year|{{LOCALYEAR}}}}}}}
+
{{#vardefine:curYear|{{{year|{{LOCALYEAR}}}}}}}<!--
{{#vardefine:firstDay|{{#time:l|01 August {{#var:curYear}}}}}}
+
-->{{#vardefine:firstDay|{{#time:l|01 August {{#var:curYear}}}}}}<!--
{{Calendar
+
-->{{#vardefine:firstDayNum|{{#time:w|01 August {{#var:curYear}}}}}}<!--
 +
-->{{Calendar
 
|year = {{#var:curYear}}
 
|year = {{#var:curYear}}
 
|month = August
 
|month = August
|01 = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--01-->{{#ifeq:{{#var:firstDayNum}}|0|0|{{#time:d|{{#var:firstDayNum}} August {{#var:curYear}}}}}} = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Kid Cat]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Kid Cat]]'s birthday</li></ul></small>
|02 = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--02-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 1}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Vladimir]]'s birthday</li><li>[[Harvey]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Vladimir]]'s birthday</li><li>[[Harvey]]'s birthday</li></ul></small>
|03 = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--03-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 2}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Benjamin]]'s birthday</li><li>[[Tad]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Benjamin]]'s birthday</li><li>[[Tad]]'s birthday</li></ul></small>
|04 = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--04-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 3}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Bones]]' birthday</li></ul></small>
 
--><small><ul><li>[[Bones]]' birthday</li></ul></small>
|05 = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--05-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 4}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Poppy]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Poppy]]'s birthday</li></ul></small>
|06 = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--06-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 5}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Chester]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Chester]]'s birthday</li></ul></small>
|07 = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--07-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 6}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Rory]]'s birthday</li><li>[[Boots]]' birthday</li></ul></small>
 
--><small><ul><li>[[Rory]]'s birthday</li><li>[[Boots]]' birthday</li></ul></small>
|08 = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--08-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 7}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Bud]]'s birthday</li><li>[[Leif]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Bud]]'s birthday</li><li>[[Leif]]'s birthday</li></ul></small>
|09 = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--09-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 8}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Soleil]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Soleil]]'s birthday</li></ul></small>
|10 = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--10-->{{#time:d|{{#expr:{{#var:firstDayNum}} + 9}} August {{#var:curYear}}}} = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Cole]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Cole]]'s birthday</li></ul></small>
|11 = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--11-->{{#expr:{{#var:firstDayNum}} + 10}} = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
--><small><ul><li>[[Gigi]]'s birthday</li></ul></small>
+
--><small><ul><li>[[Gigi]]'s birthday</li><li>[[Ace]]'s birthday</li></ul></small>
|12 = <center>'''[[Meteor Shower]]''' <small>({{PG|shortest|nolink}})</small></center><!--
+
|<!--12-->{{#expr:{{#var:firstDayNum}} + 11}} = <center>'''[[Meteor Shower]]''' <small>({{PG|shortest|nolink}})</small></center><!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Gloria]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Gloria]]'s birthday</li></ul></small>
|13 = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--13-->{{#expr:{{#var:firstDayNum}} + 12}} = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Tabby]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Tabby]]'s birthday</li></ul></small>
|14 = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--14-->{{#expr:{{#var:firstDayNum}} + 13}} = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Rod]]'s birthday</li><li>[[Leopold]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Rod]]'s birthday</li><li>[[Leopold]]'s birthday</li></ul></small>
|15 = {{#ifeq: {{#var:firstDay}} | Sunday | |  <center>'''[[Obon]]'''{{JP}}</center>}}<!--
+
|<!--15-->{{#expr:{{#var:firstDayNum}} + 14}} = {{#ifeq: {{#var:firstDay}} | Sunday | |  <center>'''[[Obon]]'''<br>{{Flag|JPN|text=Japan only}}</center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
Line 53: Line 54:
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Wendy]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Wendy]]'s birthday</li></ul></small>
|16 = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Obon]]'''{{JP}}</center>}}<!--
+
|<!--16-->{{#expr:{{#var:firstDayNum}} + 15}} = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Obon]]'''<br>{{Flag|JPN|text=Japan only}}</center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
Line 59: Line 60:
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Nate]]'s birthday</li><li>[[Leila]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Nate]]'s birthday</li><li>[[Leila]]'s birthday</li></ul></small>
|17 = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
+
|<!--17-->{{#expr:{{#var:firstDayNum}} + 16}} = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Stinky]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Stinky]]'s birthday</li></ul></small>
|18 = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
+
|<!--18-->{{#expr:{{#var:firstDayNum}} + 17}} = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
--><small><ul><li>[[Rocco]]'s birthday</li></ul></small>
+
--><small><ul><li>[[Rocco]]'s birthday</li><li>[[Tiansheng]]'s birthday</li></ul></small>
|19 = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
+
|<!--19-->{{#expr:{{#var:firstDayNum}} + 18}} = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Alice]]'s birthday</li><li>[[Tybalt]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Alice]]'s birthday</li><li>[[Tybalt]]'s birthday</li></ul></small>
|20 = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
+
|<!--20-->{{#expr:{{#var:firstDayNum}} + 19}} = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug Off]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Lopez]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Lopez]]'s birthday</li></ul></small>
|21 = <center>'''[[Founder's Day]]''' <small>({{PG|shortest|nolink}})</small></center><!--
+
|<!--21-->{{#expr:{{#var:firstDayNum}} + 20}} = <center>'''[[Founder's Day]]''' <small>({{PG|shortest|nolink}})</small></center><!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Bug Off]]''' <small>({{CF|shortest|nolink}}/{{NL|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
Line 85: Line 86:
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Wart Jr.]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Wart Jr.]]'s birthday</li></ul></small>
|22 = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--22-->{{#expr:{{#var:firstDayNum}} + 21}} = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Rolf]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Rolf]]'s birthday</li></ul></small>
|23 = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--23-->{{#expr:{{#var:firstDayNum}} + 22}} = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Nana]]'s birthday</li><li>[[K.K. Slider]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Nana]]'s birthday</li><li>[[K.K. Slider]]'s birthday</li></ul></small>
|24 = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--24-->{{#expr:{{#var:firstDayNum}} + 23}} = {{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Nan]]'s birthday</li><li>[[Jacob]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Nan]]'s birthday</li><li>[[Jacob]]'s birthday</li></ul></small>
|25 = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--25-->{{#expr:{{#var:firstDayNum}} + 24}} = {{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Tipper]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Tipper]]'s birthday</li></ul></small>
|26 = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--26-->{{#expr:{{#var:firstDayNum}} + 25}} = {{#ifeq: {{#var:firstDay}} | Wednesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Rowan]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Rowan]]'s birthday</li></ul></small>
|27 = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--27-->{{#expr:{{#var:firstDayNum}} + 26}} = {{#ifeq: {{#var:firstDay}} | Tuesday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Bangle]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Bangle]]'s birthday</li></ul></small>
|28 = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--28-->{{#expr:{{#var:firstDayNum}} + 27}} = {{#ifeq: {{#var:firstDay}} | Monday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Bug-Off]]''' <small>({{NH|shortest|nolink}}) (''Northern Hemisphere only'')</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Chrissy]]'s birthday</li><li>[[Lloid]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Chrissy]]'s birthday</li><li>[[Lloid]]'s birthday</li></ul></small>
|29 = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--29-->{{#expr:{{#var:firstDayNum}} + 28}} = {{#ifeq: {{#var:firstDay}} | Sunday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Gruff]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Gruff]]'s birthday</li></ul></small>
|30 = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
+
|<!--30-->{{#expr:{{#var:firstDayNum}} + 29}} = {{#ifeq: {{#var:firstDay}} | Saturday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
--><small><ul><li>[[Hazel]]'s birthday</li></ul></small>
 
--><small><ul><li>[[Hazel]]'s birthday</li></ul></small>
|31 = <center>'''End of [[Morning Aerobics]]''' <small>({{PG|shortest|nolink}})</small></center><!--
+
|<!--31-->{{#expr:{{#var:firstDayNum}} + 30}} = <center>'''End of [[Morning Aerobics]]''' <small>({{PG|shortest|nolink}})</small></center><!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Friday | <center>'''[[Fireworks Show]]''' <small>({{CF|shortest|nolink}}, {{NL|shortest|nolink}}, {{NH|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--
 
-->{{#ifeq: {{#var:firstDay}} | Thursday | <center>'''[[Fireworks Show]]''' <small>({{WW|shortest|nolink}})</small></center>}}<!--

Revision as of 15:10, October 30, 2021

← July August 2024 September →
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
28
29
30
31
1
2
3
Fireworks Show (WW)
4
Fireworks Show (CF, NL, NH)
5
6
7
8
9
10
Fireworks Show (WW)
11
Fireworks Show (CF, NL, NH)
12
Meteor Shower (AC)
13
14
15
Obon
Japan only
16
17
Bug Off (CF/NL)
Fireworks Show (WW)
18
Fireworks Show (CF, NL, NH)
Bug Off (WW)
19
20
21
Founder's Day (AC)
22
23
24
Bug-Off (NH) (Northern Hemisphere only)
Fireworks Show (WW)
25
Fireworks Show (CF, NL, NH)
26
27
28
29
30
31
End of Morning Aerobics (AC)
Fireworks Show (WW)


Template documentation (view)


Usage

{{CalFillAugust|year=YEAR}}

This template is used to automatically generate and populate a template call for Template:Calendar for the month of August for a year YEAR. If no year is provided, the current year will be used.

Coding notes

  • Two variables are predefined using Extension:Variables, namely curYear, which contains either the current year or a predefined YEAR, and firstDay, which is the first day of the current month for the year curYear.
  • The template determines when a non-date specific event (e.g. fourth Thursday in November) occurs by using the following formula for each possible date that event could occur on:

    {{#ifeq: {{#var:firstDay}} | Tuesday | ...}}

    In this example, the template is checking to see if the first day of the given month is a Tuesday, and if so it will insert information about the event (represented by ... in this example). If an event lasts for more than one day (e.g. Bright Nights) a #switch function is used instead,

    {{#switch: {{#var:firstDay}} | Tuesday | Wednesday =...}}

    and the logic is essentially the same. The usage of #ifeq is recommended to facilitate multiple overlapping events.
  • For days with multiple events (i.e., those with multiple #switch and #ifeq functions), the following hierarchy is recommended.
    • Events that fall on a specific day every year (e.g., Valentine's Day and Leap Day), excluding birthdays
    • Events that fall on a specific day on certain years (e.g., Festivale)
    • Events that fall on a non-specific day but on a specific week (e.g., Fishing Tourney)
    • Events that span multiple days (e.g., Bright Nights)
    • Birthdays, non-special to special, alphabetical.
  • The arrangement of multiple events that occur in the same hierarchy (e.g., January's Yay Day and Flea Market, which are both events that fall on a non-specific day but on a specific week) is up to the discretion of the editor; however, it is recommended that they be arranged in the following order: last appearance (events that have last appeared in later games are arranged first), regionally (all regions, NA, JP, EU, KO), alphabetically.
  • Those who look at the code may be surprised when they see several <!--\n\t-->. The presence of this quirk is to make the code legible for future maintainers, and so that line breaks will not be recorded (e.g., if the #ifeq statement fails). The reason why \n\t is not used is because unwanted linebreaks will occur: see this comment for more information. For those who will revise the code in the future, they may temporarily replace <!--\n\t--> with \n\t using their regex-compatible text editor, and do the reverse afterwards.
  • With regards to overlapping events, it is assumed that multiple events will occur on the same day. For example, in April 1, 2018, both Bunny Day and April Fool's Day occur on the same day in New Leaf. Another example is February 14, 2026, when both the Fishing Tourney and Valentine's Day occur in City Folk. Unless otherwise stated, all events that overlap each other will occur at the same day.
  • The calculation of certain holidays such as Festivale and Bunny Day are particularly difficult, for they depend on the lunisolar calendar. The implementation for these holidays is as follows: determine whether {{#var:curYear}} matches for some pre-determined date:

    |28 = {{#switch: {{#var:curYear}} | 2022 | 2033 = ...

    A list of all dates for Festivale must be known beforehand. This is much easier; however, it means that the template must be updated sometime in the future to show the correct dates for certain holidays.