Template:DatesWD/doc

Usage
An asterisk "*" marks non-specified parameters, and which in this case are taken equal to their current values.
 * gives first Monday* in July* of 2024* —
 * gives second Thursday in July* of 2024* —
 * gives last Sunday in December of 2024* in a short wiki link format —
 * gives fourth Wednesday in September of 2011 in some —
 * gives first Tuesday of March in next year —
 * gives third Friday of February in last year —
 * gives penultimate Saturday in July for last year in a long wiki link format —

Lua date format
If you use the  parameter, then this format does not work.
 * %a  abbreviated weekday name (e.g., Wed)
 * %A  full weekday name (e.g., Wednesday)
 * %b  abbreviated month name (e.g., Sep)
 * %B  full month name (e.g., September)
 * %x  date (e.g., 09/16/98)
 * %d  day of the month (16) [01-31]
 * %m  month (09) [01-12]
 * %w  weekday (3) [0-6 = Sunday-Saturday]
 * %Y  full year (1998)
 * %y  two-digit year (98) [00-99]

Template Data
{ "description": "Calculation of non-fixed dates on the nth day of the week in a given month (and a year).", "params": { "1": {     "label": "Nth", "description": "1 = first, 2 = second, etc. -1 = last, -2 = penultimate, etc", "type": "number", "default": "default value", "required": true },   "2": {      "label": "Day of the week", "description": "0 = Sunday, 1 = Monday, ... 6 = Saturday", "type": "number", "default": "current", "suggested": true },   "3": {      "label": "Month", "description": "1 = January, 2 = February, ... 12 = December", "type": "number", "default": "current", "suggested": true },   "4": {      "label": "Year", "description": "Fore digits year", "type": "number", "default": "current" },   "date": { "label": "Wiki date output formats", "description": "MD/wiki for January 1 format, MDY/wiki_long for December 31, 2018 format", "type": "line" },   "format": { "label": "Lua output format", "description": "%x for date format MM/DD/YY or others, default YYYY-MM-DD", "type": "line", "default": "%Y-%m-%d" } } }