Template:Age in years and days nts/doc
![]() | This is a documentation subpage for Template:Age in years and days nts. It contains usage information, categories and other content that is not part of the original template page. |
This template returns the number of full years and surplus days between two specified dates. If the second set of parameters is not included, it returns the number of full years and surplus days between a specified date and today's date. The two numbers are separated by a comma; the words "year" and "day" are plural when appropriate. A hidden sort key is included so values produced by this template will work properly in sortable lists.
This is temporary documentation resulting from Template talk:Age in years and days#Google problems which shows problems when {{age in years and days}} outputs a hidden sort key. It is proposed that {{age in years and days}} will not output a hidden sort key, so {{age in years and days nts}} is needed for when a sort key is wanted. The sort key is calculated from the number of days between the given dates, and is compatible with {{number table sorting}}.