Template:Time
Jump to navigation
Jump to search
Presents UTC time (either absolute points or ranges), localised by javascript in MediaWiki:Gadget-timer.js to the browser's time zone.
Provide the following parameters:
- date
- Required - UTC Date in YYYY-MM-DD format, e.g. "2042-02-12" for the 12th of February, 2042.
- start
- Required - UTC Time in HH:MM 24-hour format, e.g. 23:59 for one-minute-before-midnight.
- end
- Optional - Interval endpoint: UTC Time in HH:MM 24-hour format.
- end-date
- Optional - Interval endpoint: UTC Date in YYYY-MM-DD format.
- anchor
- Optional - Anchor time: UTC Date/Time in YYYY-MM-DD HH:MM format.
If |end=
is not provided, a single time is displayed. If |end=
is specified, the times are displayed as a range; |end-date=
defaults to |date=
if not specified.
Important: start and end-points of an interval should generally be within 12 hours of each other, as the end-date
is not displayed to the reader. The start date is displayed unless it matches the anchor time in the local time zone, or today's date (if no anchor time is specified).
Examples:
{{time|20:00|2000-01-01}}
→ 20:00 UTC{{time|start=20:00|date=2000-01-01}}
→ 20:00 UTC{{time|start=20:00|date=2000-01-01|end=21:00}}
→ 20:00 – 21:00 UTC
Script/template designed by User:Pcj and User:Surafbrov from https://warcraft.wiki.gg/wiki/MediaWiki:Common.js
{{{1}}} UTC