Template:End date
| This template, module and/or subpages are based on or ported over completely to BattleTechWiki, using the Creative Commons Licensed content from this page on Wikipedia (The original authors of this page are shown on here). |
| This template uses Lua: |
{{End date}} returns the date (or date and time) that an event or entity ended, in a standard format. It also includes a hidden (by CSS) duplicate, machine-readable date (or date and time) in the ISO date format, for use inside templates or table rows that emit microformats.
Usage[edit]
{{End date|YYYY}}(year only){{End date|YYYY|MM}}(month and year){{End date|YYYY|MM|DD}}(year, month, and day){{End date|YYYY|MM|DD|HH|MM|SS|Time zone}}(date, time, and time zone)
Parameters[edit]
- The unnamed parameters, in order, represent the year (four digits), month (one or two digits), day (one or two digits), hour in 24-hour time (one or two digits), minutes (one or two digits), seconds (one or two digits), and the time zone (see below).
- When specifying time of day, MM (minutes), SS (seconds), and the time zone are optional
- Time zone may be a numerical value, or
Zfor UTC (see examples) |df=yes, an optional parameter, can be set to display the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004"). The order of parameters does not change (it remains YMD). This is primarily used in articles using DMY format for dates.
Examples[edit]
{{End date|1993}}→ 1993{{End date|1993|02}}→ February 1993{{End date|1993|02|24}}→ February 24, 1993{{End date|1993|02|24|08|30}}→ 08:30, February 24, 1993{{End date|1993|02|24|08|7=+01:00}}→ 08:00, February 24, 1993 (+01:00){{End date|1993|02|24|08|7=−07:00}}→ 08:00, February 24, 1993 (−07:00){{End date|1993|02|24|08|30|23}}→ 08:30:23, February 24, 1993{{End date|1993|02|24|08|30|23|Z}}→ 08:30:23, February 24, 1993 (UTC){{End date|1993|02|24|08|30|23|+01:00}}→ 08:30:23, February 24, 1993 (+01:00){{End date|1993|02|24|08|30|23|−07:00}}→ 08:30:23, February 24, 1993 (−07:00){{End date|1993|02|24|df=y}}→ 24 February 1993{{End date|1993|02|24|08|30|df=yes}}→ 08:30, 24 February 1993
TemplateData[edit]
TemplateData for End date
Date that an event or entity ended or was dissolved
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| YYYY | 1 | End year | Number | required |
| MM | 2 | End month | Number | suggested |
| DD | 3 | End day of month | Number | suggested |
| HH | 4 | End hours | Number | optional |
| MM | 5 | End minutes
| Number | optional |
| SS | 6 | End seconds
| Number | optional |
| TZ | 7 | Time zone offset, "+02:00", "-06:00" or "Z" for UTC | Line | optional |
| Day first | df | Set to 'yes' to show the day before the month name
| Line | optional |
Tracking categories[edit]
- Category:Pages using end date with unknown parameters (0)
- Category:Pages using Module:Date time with invalid values (0)
See also[edit]
- {{Start date}}
- {{Start and end dates}}
- {{Trim date}}

