Template:Weekday in month/doc
Template page
More actions
Purpose
This calculation template returns the calendar day for an ordinal weekday in a month, such as the second Sunday in March.
Usage
{{Weekday in month|ordinal|weekday|month|year}}
{{Weekday in month|year|month|weekday|ordinal}}
Both positional orders are supported. ordinal accepts words or numbers handled by Template:Weekday in month/ordinal; weekday accepts a weekday name or number; and the result is a day-of-month number. Invalid inputs can produce parser errors or blank output.