Template:Age: Difference between revisions
Jump to navigation
Jump to search
m added description |
m typo |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Call the template with the birth date of birth (format yyyy|mm|dd) and the date of death | Call the template with the birth date of birth (format yyyy|mm|dd) and the date of death. | ||
<nowiki>{{Age|yyyy|mm|dd|yyyy|mm|dd}}</nowiki> | <nowiki>{{Age|yyyy|mm|dd|yyyy|mm|dd}}</nowiki> | ||
| Line 8: | Line 8: | ||
[[Jonathon Conte]] died at age {{Age|1981|06|14|2016|05|09}}. | [[Jonathon Conte]] died at age {{Age|1981|06|14|2016|05|09}}. | ||
[[de:Vorlage:Alter]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 15:46, 5 July 2023
Usage
Call the template with the birth date of birth (format yyyy|mm|dd) and the date of death.
{{Age|yyyy|mm|dd|yyyy|mm|dd}}
Example
[[Jonathon Conte]] died at age {{Age|1981|06|14|2016|05|09}}.
Jonathon Conte died at age 34.