Module talk:Age
Appearance
Module:Age
I created Module:Age to fix some problems reported with {{Age in years and months}}, and that template has been replaced with code to invoke this module. I don't know if it would be worth replacing other related templates with a call to a module, but as an experiment I have added code to this module to implement {{Age in days}} and {{Gregorian serial date}}. I have done over 100 tests offline which suggest that the module is performing correctly. The following shows a few results that compare the outputs from the current templates with User:Johnuniq/age days and User:Johnuniq/gsd which invoke the module.
Parameters to template | Result from {{age in days}} |
Result from {{User:Johnuniq/age days}}
|
---|---|---|
|1898|1|1|1900|1|1 |
730 | 730 |
|1900|1|1|1898|1|1 |
−730 | −730 |
|2013|4|1 |
4435 | 4435 |
Parameters to template | Result from {{gsd}} |
Result from {{User:Johnuniq/gsd}}
|
---|---|---|
|year=1|month=1|day=1 |
1 | 1 |
|year=2000|month=12|day=31 |
730485 | 730485 |
(none) |
739394 | 739394 |
I'll mention this in a couple of places to let people know the module is available. Johnuniq (talk) 09:55, 2 April 2013 (UTC)