Template:Birth based on age as of date/doc

&#x3c;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&#x3e;

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

Syntax
&#x3c;pre&#x3e; (age age) &#x3c;/pre&#x3e; The age, year, and day must be supplied as natural numbers; month can be specified as a natural number as well as by name or abbreviation (e.g. "August" or "Aug"). The Gregorian calendar is assumed, with no special support provided for dual dating or the difference between Old Style and New Style dates.

If they are not known, the "day" and "month" fields can be omitted; this is useful if, for example, only the publication year for a source is known.

Options
To suppress the age field: &#x3c;pre&#x3e; (age age) &#x3c;/pre&#x3e;

With the "noage=1" option, the month and day can be "1".

To replace the '/' separator with ' or ' in compliance with WP:APPROXDATE, add 1
 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;(age 50)&#x3c;/code&#x3e;
 * (age 50)

Examples
If, for example, a reference dated July 4, mentions that someone is 50 years old, that person's birth year and age can be rendered using: &#x3c;nowiki&#x3e;(age 50)

&#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e; &#x3c;templatedata&#x3e; {	"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 ' in compliance with WP:APPROXDATE.", "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" } &#x3c;/templatedata&#x3e;

Redirects

 * Template:Bbad
 * Template:Birth year from age as of date
 * Template:Birth year from age at date