Шаблон:Age
Материал из Guild Wars 2 wiki
Версия от 14:24, 19 августа 2013; Snowbirdie (обсуждение | вклад) (Новая страница: «<includeonly>{{#vardefine:days|{{Datediff|{{{1}}}}}}}{{ #ifexpr: {{#var:days}} > 365 |{{ #expr: {{int div|{{#var:days}}|365}} }} years and {{ #expr: {{#var:days}}…»)
Usage
A utility template that displays the number of days value returned by {{Datediff}} in years and days. The date value given to this value is "diff-ed" with the current date.
Examples
- {{Age|20090101}}
- 15 years and 161 days
- {{Age|1 Jan 2007}}
- 17 years and 162 days