Template:Year nav/doc

From IxWiki
Revision as of 19:25, 18 August 2023 by >SWinxy (→‎See also: link to {{dr}}, which is what this uses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

Takes one optional parameter, the year-number. Prefix it with a minus sign for BC.

For AD years the number can be omitted if it is the page name.

The box width shrinks nearly 6% for smaller year-number sizes.

Example for "{{Year nav|2014}}" at right:
Millennium: 3rd millennium
Centuries:
Decades:
Years:
Example for "{{Year nav|14}}" at right:
Millennium: 1st millennium
Centuries:
Decades:
Years:
Example for "{{Year nav|2029}}" at right:
Millennium: 3rd millennium
Centuries:
Decades:
Years:
Example for "{{Year nav|-814}}" at right:
Millennium: 1st millennium BC
Centuries:
Decades:
Years:
Example for "{{Year nav|1}}" at right:
Millennium: 1st millennium
Centuries:
Decades:
Years:
Example for "{{Year nav|911}}" at right:
Millennium: 1st millennium
Centuries:
Decades:
Years:

See also

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Year nav in articles based on its TemplateData.

TemplateData for Year nav

This template generates a navigation box for a year.

Template parameters

ParameterDescriptionTypeStatus
Year1

The year to generate a box for. If nothing is typed in, the title of the page will be used.

Example
2018
Numbersuggested