Template:Age: Difference between revisions
Jump to navigation
Jump to search
Rexster930 (talk | contribs) Created page with "<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly>" |
Fix date formatting, validate calendar dates and calculate completed age |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#invoke:Expanded dates|age}}</includeonly><noinclude> | ||
;Description | |||
:Calculates age in completed years. A 29 February birthday reaches its next age on 1 March in non-leap years. | |||
;Syntax | |||
:{{t|Age|YYYY|MM|DD}} | |||
:Optional reference date: {{t|Age|YYYY|MM|DD|ENDYEAR|ENDMONTH|ENDDAY}} | |||
;Example | |||
:{{Age|2001|02|02}} | |||
[[Category:General templates]] | |||
</noinclude> | |||