Template:Age in years and days nts/doc

From blackwiki
< Template:Age in years and days nts
Revision as of 07:05, 22 April 2017 by blackwiki>Johnuniq (initial documentation for proposed usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}}.