Changes

Jump to navigation Jump to search
{{Documentation subpage}}
<!-- Categories go at the bottom of this page. -->

This template displays a person's birth date and age at a specified date.<br/>
This allows you to show how old a person was at the time they participated in an event or made an achievement.

== Usage ==
; Syntax
: {{tlc|{{lc:{{BASEPAGENAME}}}}&nbsp;|''specified year''|''specified month''|''specified day''&nbsp;|''year of birth''|''month of birth''|''day of birth''}}

; Format
: {{tlf|{{lc:{{BASEPAGENAME}}}}&nbsp;|''yyyy''|''mm''|''dd''&nbsp;|''yyyy''|''mm''|''dd''&nbsp;|df{{=}}y}}

; Example
{{tlf|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}} produces:&nbsp; {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}}

== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"params": {
"1": {
"description": "Adds the specified year.",
"example": "1970",
"type": "number",
"suggested": true,
"label": "Specified year"
},
"2": {
"description": "Adds the specified month.",
"example": "5",
"type": "number",
"suggested": true,
"label": "Specified month"
},
"3": {
"description": "Adds the specified day.",
"example": "23",
"type": "number",
"suggested": true,
"label": "Specified day"
},
"4": {
"example": "1952",
"type": "number",
"suggested": true,
"label": "Birth year"
},
"5": {
"example": "4",
"suggested": true,
"label": "Birth month",
"type": "number"
},
"6": {
"example": "18",
"type": "number",
"suggested": true,
"label": "Birth day"
},
"df": {
"label": "date first format",
"description": "sets format to dmy",
"example": "y, yes",
"type": "string"
},
"mf": {
"label": "month first format",
"description": "mf=yes sets format to mdy",
"default": "this is the templates default"
}
},
"description": "This template displays a person's birth date and age at a specified date.",
"format": "inline",
"paramOrder": [
"1",
"2",
"3",
"4",
"5",
"6",
"df",
"mf"
]
}
</templatedata>

== See also ==
{{Birth, death and age templates}}

<includeonly>{{basepage subpage
| <!-- Categories below this line, please: -->
[[Category:Date mathematics templates]]
}}</includeonly>
Anonymous user

Navigation menu