Template:Days after date

From mtgpq wiki
Jump to: navigation, search

Usage

Returns the numerical day of the month relative to a given date.

The first three parameters are the year, month name, and day number of a date which is taken as the start of a week.

The fourth parameter is a number from 1 to 7 representing the day of the week.

Example

The following shorthand:

{{Days after date|2019|January|28|5}}
{{Days after date|2019|February|28|5}}
{{Days after date|2019|March|28|5}}
{{Days after date|2019|April|28|5}}
{{Days after date|2019|May|28|5}}
{{Days after date|2019|June|28|5}}
{{Days after date|2019|July|28|5}}
{{Days after date|2019|August|28|5}}
{{Days after date|2019|September|28|5}}
{{Days after date|2019|October|28|5}}
{{Days after date|2019|November|28|5}}
{{Days after date|2019|December|28|5}}

{{Days after date|2020|February|28|5}}
{{Days after date|2100|February|28|5}}
{{Days after date|2400|February|28|5}}

Produces:

1 4 1 2 1 2 1 1 2 1 2 1

3 4 3