Template:AgeBirthdate/doc

Usage
age

This template calculates a person's birth year and current age based on their age as of a date. This is useful when a source states only their age at the time of publication.

For example, if someone states on January 2, 2021 that they are 37, you could use:

which would output:

If their full birthdate is known, please use Birthdate instead.

TemplateData
{	"params": { "1": {			"label": "Age", "description": "Age of subject at date of reference's publication.", "example": "55", "type": "number", "required": true },		"2": {			"label": "Year", "description": "Year of publication of reference.", "example": "1950", "type": "number", "required": true },		"3": {			"label": "Month", "description": "Month of publication of reference.", "example": "8 or August", "type": "string", "suggested": true },		"4": {			"label": "Day", "description": "Day of publication of reference.", "example": "21", "type": "number", "suggested": true },		"mos": { "label": "MOS compliance", "description": "Set to a value of 1 to replace the '/' separator with ' or '.", "example": "1", "type": "number" },		"noage": { "label": "Hide age", "description": "Set to a value of 1 to display year of birth without the age.", "example": "1", "type": "number" }	},	"description": "This template calculates the birth year and current age based on the age as of a date.", "format": "inline" }