Jump to content

Template:Birth year and age2

From NicheWork
Template documentation


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:Templates using TemplateData{{#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