Template:Year article/doc

Year article outputs the title of the article in which a year appears.

Usage
The template requires one parameter: the year, supplied as an integer. Positive numbers are AD; negative numbers are BC. An optional offset may be given as a number of years. The output is the title of the article in which the year appears. (If the year is has no article then the output is the title which might be expected, e.g. AD 5678 or 5678 BC.) Year zero with an offset is treated as if the year were inserted between 1 BC and AD 1.

Examples

 * → (there being no year zero)
 * → (420 being a disambiguation page)
 * → ( being a redirect from the subtopic)
 * → (Five years after where year zero would have been had it existed)
 * → (Five years before where year zero would have been had it existed)
 * → ( being a redirect from the subtopic)
 * → (Five years after where year zero would have been had it existed)
 * → (Five years before where year zero would have been had it existed)
 * → (Five years before where year zero would have been had it existed)

TemplateData
{	"description": "Output the title of the article in which a year appears", "params": { "1": {			"label": "1", "description": "The year as an integer", "type": "number", "required": true, "example": "2019" },		"2": {			"label": "2", "description": "Offset as a number of years", "type": "number", "required": false, "example": "5", "default": "0" }	},	"format": "inline" }