|
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
| This template uses Lua:
|
{{Birth-date and age}} displays a person’s birth date and age. Besides calculating the age of the person, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.
Note: The template may not calculate the age correctly if a full date (month, day, year) is not provided. For example, a person who was born in 1941 could be either 82 or 83, depending on whether they have reached their birthday in the current year:
{{Birth-date and age|1941}}
→ 1941 (1941) (age 83)
{{Birth-date and age|February 1941}}
→ February 1941 (1941-02) (age 83)
When only the year is known, consider using {{Birth year and age}} instead:
{{Birth year and age|1941}}
→ 1941 (age 82–83)
{{Birth year and age|1941|2}}
→ February 1941 (age 82–83)
Usage
- Format
{{Birth-date and age| birth date }}
{{Birth-date and age| birth date | wikitext to display in place of 'birth date'. Like the right hand parameter in a wikilink, this could be alternate text, links, templates etc. }}
Examples
Examples of {{Birth-date and age}} (colors for emphasis only)
Month first format: Sample below displays April 12, 1941 (1941-04-12) (age 82), with invisible microformat date: 1941-04-12
{{Birth-date and age|April 12, 1941}}
|
Day first format: Sample below displays 12 April 1941 (1941-04-12) (age 82), with invisible microformat date: 1941-04-12
{{Birth-date and age|12 April 1941}}
|
Year only, year and month only: Sample below displays 1941 (1941) (age 83), with invisible microformat date: 1941
{{Birth-date and age|1941}}
|
Demo of ISO date, as well as alternate displays. Sample below displays Twelfth of April, 1941 (1941-04-12) (age 82), with invisible microformat date: 1941-04-12
{{Birth-date and age|1941-04-12|Twelfth of April, 1941}}
|
Microformat output
Birth date and age templates:
Parameters
{{birth-date and age|birth date|additional parameters}}
Parameter |
Default
|
(required) |
1 |
Birth date. May be year only, year and month, year month and day, expressed in natural formats: e.g.: 24 August 1953, 1955-08-25, Sunday, December 7, 1941. If parameter three is not specified, the birth date is displayed in exactly this format. This value as well as parameter 2 may not include links. If links or templates that do not evaluate as recognizable dates are desired, use parameter 2. |
–
|
(optional) |
2 |
The birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1. |
parm 1
|
(optional) |
bce |
If birth date is BC, set to "b". |
–
|
(optional) |
gregorian |
If Julian date is used, this parameter is required. The date provided is used for emitting the correct microformat translation of the birth date. |
parm 1
|
(optional) |
dt |
This value if present is the ISO8601 value emitted to indicate microformat birth date. It overrides any calculated value. |
–
|
Supporting templates
Tracking categories
See also
Birth, death and age templates |
---|
birth, death, age |
---|
Combined BDA template | Description / use | {{BirthDeathAge}} | Combines functions of {{Birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}}, and {{death year and age}}. |
Birth templates | Description / use | {{Birth date}} | To display a birth date and related hidden metadata. | {{Birth-date}} | | {{Birth date and age}} | {{Birth date}} with suffix '(age N)'. | {{Birth date and age2}} | {{Birth date and age}} plus age as of a specified date. | {{Birth-date and age}} | As {{Birth date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc). | {{Birth year and age}} | Year of birth and approximate age. | {{Birth based on age as of date}} | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person), only works for living people. | {{Birth based on age at death}} | To display approximate birth year based on age at death, or on age at a specific date if death date isn't known. |
Death templates | Description / use | {{Death date}} | To display a death date and related hidden metadata. | {{Death-date}} | | {{Death date and age}} | {{Death date}} with suffix '(aged N)'; also called with {{event date and age}}. | {{Death-date and age}} | As {{Death date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc). | {{Death date and given age}} | To display a death date and specified age. | {{Death year and age}} | To display a year of, and approximate age at death. |
|
|
age only |
---|
Reverse-determined age template | Description / use | {{Age}} | Age based on number of complete years between two dates. | {{Age nts}} | {{Age}} with output formatted for use in number sortable tables. | {{Age as of date}} | Current age (in years) from a known age at a specified date. | {{Age for infant}} | Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3. |
|
|
|
|
|