Birth, death and age templates |
---|
{{#if:Birth, death, age
| Birth, death, age |
---|
Template | {{#if:Description / use
|Description / use
|110%
}} | {{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 date}} | To display a birth date and related hidden metadata. | {{birth-date}} | | {{birth date and age}} | {{{{#if:birth date|birth date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(age N)". | {{birth date and age2}} | {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} plus age as of a specified date. | {{birth-date and age}} | As {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} 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). | {{Birth date based on age at death}} | To display approximate birth year based on age at death. |
Template | {{#if:Description / use
|Description / use
|110%
}} | {{death date}} | To display a death date and related hidden metadata. | {{death-date}} | | {{death date and age}} | {{{{#if:death date|death date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(aged N)". Also called with {{{{#if:event date and age|event date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} | {{death-date and age}} | As {{{{#if:death date and age|death date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} 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. |
|
| Template | {{#if:Description / use
|Description / use
|110%
}} | {{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 date}} | To display a birth date and related hidden metadata. | {{birth-date}} | | {{birth date and age}} | {{{{#if:birth date|birth date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(age N)". | {{birth date and age2}} | {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} plus age as of a specified date. | {{birth-date and age}} | As {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} 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). | {{Birth date based on age at death}} | To display approximate birth year based on age at death. |
Template | {{#if:Description / use
|Description / use
|110%
}} | {{death date}} | To display a death date and related hidden metadata. | {{death-date}} | | {{death date and age}} | {{{{#if:death date|death date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(aged N)". Also called with {{{{#if:event date and age|event date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} | {{death-date and age}} | As {{{{#if:death date and age|death date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} 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. |
}} |
{{#if:Age only
| Age only |
---|
Template | {{#if:Description / use
|Description / use
|110%
}} | {{age in years, months, weeks and days}} | Number of complete years, months, weeks and days between two dates. | {{age in years, months and days}} | Number of complete years, months and days between two dates. | {{age in years and months}} | Number of complete years and remaining months between two dates. | {{age in years and days}} | Number of complete years and remaining days between two dates. | {{age in days}} | Age in days between two dates. | {{age in days nts}} | {{{{#if:age in days|age in days| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables. |
Template | {{#if:Description / use
|Description / use
|110%
}} | {{age}} | Age based on number of complete years between two dates. | {{age nts}} | {{{{#if:age|age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables. | {{age as of date}} | Current age (in years) from a known age at a specified date. |
|
| Template | {{#if:Description / use
|Description / use
|110%
}} | {{age in years, months, weeks and days}} | Number of complete years, months, weeks and days between two dates. | {{age in years, months and days}} | Number of complete years, months and days between two dates. | {{age in years and months}} | Number of complete years and remaining months between two dates. | {{age in years and days}} | Number of complete years and remaining days between two dates. | {{age in days}} | Age in days between two dates. | {{age in days nts}} | {{{{#if:age in days|age in days| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables. |
Template | {{#if:Description / use
|Description / use
|110%
}} | {{age}} | Age based on number of complete years between two dates. | {{age nts}} | {{{{#if:age|age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables. | {{age as of date}} | Current age (in years) from a known age at a specified date. |
}} |
{{#if:Start / end dates
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
{{#if:
| |
|
Template documentation
Template:Collapsible sections option
Initial visibility
To set the template's initial visibility, the |{{#if:state|state=}}
parameter may be used:
|{{#if:state|state=}}collapsed
: {{{{{{#if:| |BASE}}PAGENAME}}|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
|{{#if:state|state=}}expanded
: {{{{{{#if: | |BASE}}PAGENAME}}|state=expanded}} to show the template expanded, i.e., fully visible
|{{#if:state|state=}}autocollapse
: {{{{{{#if: | |BASE}}PAGENAME}}|state=autocollapse}}
- shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
- shows the template in its expanded state if there are no other collapsible items on the page
If the |{{#if:state|state=}}
parameter is not set, the template's initial visibility is taken from the |{{#if:default|default=}}
parameter in the template. For this template, that currently evaluates to {{#switch:expanded|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}
.{{#if:|
|{{#if:align|align=}}value
is also available; where value can be either right
or left
. The default is center
}}{{#if:|:|{{#if:title-background|title-background=}}value
is also available; where value can be either navbox
or a color
. The default is none
and navbox
defaults to the default navbox color.
}}{{#if:|
|{{#if:width|width=}}value
is also available; where value can be either N [em/%/px]
or auto
. The default is 100%
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#if: |Lua error in Module:Effective_protection_level at line 52: attempt to index field 'ext' (a nil value).
| {{#if: |Lua error in Module:Effective_protection_level at line 41: attempt to index field 'ext' (a nil value). }}
}}
| other
| #default =
}}
{{#if:Template:Collapsible sections option
Initial visibility
To set the template's initial visibility, the |{{#if:state|state=}}
parameter may be used:
|{{#if:state|state=}}collapsed
: {{{{{{#if:| |BASE}}PAGENAME}}|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
|{{#if:state|state=}}expanded
: {{{{{{#if: | |BASE}}PAGENAME}}|state=expanded}} to show the template expanded, i.e., fully visible
|{{#if:state|state=}}autocollapse
: {{{{{{#if: | |BASE}}PAGENAME}}|state=autocollapse}}
- shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
- shows the template in its expanded state if there are no other collapsible items on the page
If the |{{#if:state|state=}}
parameter is not set, the template's initial visibility is taken from the |{{#if:default|default=}}
parameter in the template. For this template, that currently evaluates to {{#switch:expanded|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}
.{{#if:|
|{{#if:align|align=}}value
is also available; where value can be either right
or left
. The default is center
}}{{#if:|:|{{#if:title-background|title-background=}}value
is also available; where value can be either navbox
or a color
. The default is none
and navbox
defaults to the default navbox color.
}}{{#if:|
|{{#if:width|width=}}value
is also available; where value can be either N [em/%/px]
or auto
. The default is 100%
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#if: |Lua error in Module:Effective_protection_level at line 52: attempt to index field 'ext' (a nil value).
| {{#if: |Lua error in Module:Effective_protection_level at line 41: attempt to index field 'ext' (a nil value). }}
}}
| other
| #default =
}}|
[[Category:Template documentation pages{{#translation:}}]]
}}