Jump to content

Template:New year header/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template is used every New Year's Day on the articles for the involved years while the year is changing over. The year changes at different times in different time zones, and this template automates the updates to keep the articles current hour-to-hour.

It works by calculating the time zone in which it was most recently midnight of a new year, and displaying appropriate text for the first sentence of the appropriate year article. This template gives accurate results between 0:00, December 31 UTC and 23:59, January 1 UTC; at other times the standard template should be used.

Usage: '''2018''' is {{New year header|new}}. It is {{Year article header/zc|2018}}.

Use "new" for the incoming year and "old" for the outgoing year. For testing, an optional second and third argument can provide a day of the month (31 or 1) and a time in hhmm format, no colon.

TemplateData

[edit]

Header used for year articles on New Year's Day when the year changes over. The header updates automatically based on time zones which have most recently reached midnight.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Year1 year

Specifies whether the year in question is the incoming or outgoing year.

Suggested values
new old
Default
'new' if not specified
Example
'new' or 'old'
Auto value
new
Stringrequired
Day2 day

The day of the month.

Suggested values
31 1
Default
Current day of the month if not specified
Example
'31' for 31 December, '1' for 1 January
Numberoptional
Time (UTC)3 time

The time in UTC, written in 24-hour 'hhmm' format.

Suggested values
1600 0000 1200
Default
Current time if not specified
Example
'1200' for noon, '0000' for midnight
Numberoptional

See also

[edit]