Template:Birth year and age2/doc: Difference between revisions
w>Habst df/mf not meaningful |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 13:42, 19 January 2026
| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
This template displays a person's birth date and age at a specified date, if only their year of birth is known.
This allows you to show how old a person was at the time they participated in an event or made an achievement, even if you only know their year of birth.
Usage
- Syntax
{{birth year and age2 |specified year|year of birth|optional month of birth|optional specified month}}
- Format
- {{birth year and age2 |yyyy|yyyy}}
- Example
{{birth year and age2 |1988|1961}} produces: 1961 (aged 26–27)
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Birth year and age2
[[Category:TemplateData documentation{{#translation:}}]]
<templatedata> { "params": { "1": { "description": "Adds the specified year.", "example": "1970", "type": "number", "suggested": true, "label": "Specified year" }, "2": { "example": "1952", "type": "number", "suggested": true, "label": "Birth year" }, "3": { "description": "Adds the specified month.", "example": "5", "type": "number", "suggested": false, "label": "Specified month" }, "4": { "example": "4", "suggested": false, "label": "Birth month", "type": "number" } }, "description": "This template displays a person's birth date and age at a specified date, if only their year of birth is known.", "format": "inline", "paramOrder": [ "1", "2", "3", "4" ] } </templatedata>
See also