(1974–2024)
This template may be used to display a person's or entity's lifespan in years, and optionally their age, also in years. Additional options handle ambiguous dates, or affect presentation; error messaging is available for some usage errors.
Usage
Listed by importance |
Syntax and presentation
For basic use, only the birth and death dates (in years) are required. Years must be entered with all digits (1 to 4 depending on century).
Depending on the parameters used, default presentation and formatting elements including static text, white space and additional punctuation may be displayed.
All parameter names must be in lowercase; optional parameters are ignored when they are misspelled or unrecognized. Dependent and conditional parameters are ignored if their prerequisite parameter(s) or conditions are absent.
Copy a blank version from the box above to use. Insert the "|" (pipe) character between each parameter. Delete unused parameters.
The template's output is enclosed in parentheses by default; they may be removed, or may be used to enclose the optional age component only.
See § Parameters for important details.
Parameters
Requirements and constraints
- Parameters birth (or its alias b) and death (or its alias d) are required.
- Parameters label (content label, alias l) and prefix (birth/death prefixes, alias pfx) cannot be used concurrently.
- Parameters ca (circa) and or (birth and/or death is either of 2 years) cannot be used concurrently.
- Parameters birth2 (alias b2) and death2 (alias d2) depend on parameter or.
- Parameters birth2 and death2 respectively must have greater absolute value than the corresponding parameters birth and death.
- Parameter yrs (age in years) depends on parameter age-range (range of ages in years).
- Parameters or and yrs cannot be used concurrently.
Parameter options
- birth/b and death/d: (a full year) "uncertain" "unknown"
- brackets/bkt (parentheses, on by default): "ar" (around age-range only) "nb" (no brackets anywhere)
- label/l (content label "lifespan"): "lc" (all lower-case) "uc" (upper-case initial)
- prefix/pfx: "y"
- ca (circa): "born" "died" "both"
- or: "born" "died" "both"
- birth2/b2 and death2/d2: (a full year)
- suffix/sfx: "b-a" (BC/AD) "b-c" (BCE/CE) "ad" "bc" "bce" "ce"
- age-range (age-range in years and its label): "aged" "nolabel"/"nl"
- yrs (age in years): "abd" (death occured after birthday on death-year) "bbd" (death occured before birthday on death-year)
- err (display all optional-parameter error messages): "y"
Examples
(lifespan: 1991–2011)
(b. 9 – d. 91, aged 82 years)
(lifespan: 9–91, aged 81 years)
1991–2011
(b. c. 1991 BC – d. c. 2011 AD)
(b. 1991 or 1992 – d. 2011 or 2012 AD, aged 18 to 21 years)
(b. 91 or 92 – d. 1 or 2 BC, aged 88 to 91 years)
(b. 250 or 251 – d. 175 BC, 74 to 76 years)
(b. 250 – d. 174 or 175 BC, 74 to 76 years)
(c. 1991 – c. 2011 AD)
c. 1991 – c. 2011
(c. 1991 – 2011 AD)
(c. 1991 – 2011 AD, c. 19–20 years)
(1991 – c. 2011 AD)
(c. 1991 – 2011 AD)
(1991 – 2011 AD)
b. 1991 – d. 2011 AD, aged 19–20 years
b. 1991 – d. 2011, 19–20 years
(b. 1991 – d. 2011, 19–20 years)
b. 1991 BC – d. 2011 AD (aged 4001–4002 years)
b. 1991 BC – d. 2011 AD (4002 years)
b. c. 1991 BCE – d. c. 2011 CE (c. 4002 years)
b. 1991 BC – d. 2011 AD, aged 4001 years
(b. c. 1991 BCE – d. c. 2011 CE, c. 4001 years)
Lifespan: c. 1991 BCE – c. 2011 CE (aged c. 4001–4002 years)
(1991 – uncertain)
(unknown – c. 1910)
Error examples
(– ! {{lifespan}}
: Parameter death/d – is missing, mislabeled, has no value or invalid value [info] !)
( ! {{lifespan}}
: Parameter birth/b is missing, mislabeled, has no value or invalid value [info] !{{{b}}}–)
( ! {{lifespan}}
: Parameter label cannot be used with parameter prefix [info] !b. c. 1991 BC – d. c. 2011 AD)
(b. 1991 BC – d. 2011 AD ! {{lifespan}}
: Parameter yrs requires parameter age-range [info] !)
(b. 1991 or 1992 BC – d. 2011 AD, 4002 to 4002 ! {{lifespan}}
: Parameter yrs cannot be used with parameter or [info] ! years)
(b. ! {{lifespan}}
: Parameter or cannot be used with parameter ca (circa) [info] !1991 BC – d. c. 2011 AD)
(b. ! {{lifespan}}
: Parameter birth/b is missing, mislabeled, has no value or invalid value [info] !{{{b}}} BCE – d. c. CE, c. Error: Need valid year, month, day years)