Шаблон:Age in years and months/документація

Цей шаблон повертає різницю між двома заданими датами, як число повних років та місяців. Якщо другий набір параметрів не заданий, різницю між зазначеною та сьогоднішньою датою.

Синтаксис ред.

{{age in years and months |year1|month1|day1 |year2|month2|day2}}
{{age in years and months |year1|month1|day1}}  (causing the current date to be used as the second date)

Приклади ред.

Розмітка Рендериться як
{{age in years and months |1989|7|23 |2003|7|14}}

13 років, 11 місяців

{{age in years and months |1989|7|23 |1989|8|22}}

0 місяців

{{age in years and months |1989|7|23 |1989|8|23}}

1 місяць

{{age in years and months |1989|7|23 |1990|7|23}}

1 рік

{{age in years and months |1989|7|23}}

34 роки, 9 місяців

{{age in years and months |1990|7|23 |1989|7|23}}

−1 рік

{{age in years and months |1990|9|23 |1989|7|23}}

−1 рік, 2 місяці


Шаблон:Birth, death and age templates