User blog:JoshuaJSlone/Template:Age in years, months and days

Hey guys, there's a new template that will be useful for a handful of pages. There are places that show how long a member has been in a group in months, years, days. Until now they've just been manually updated pretty frequently. Being a time calculation I figured there was likely an existing template that should be able to keep it up to date, like a more advanced version of the template that calculates a person's age. I found it in Wikipedia's Template:Age in years, months and days. I copied it over and made just a few modifications. 1) Forced it to use JST. 2) Made its output format match how things have already been displayed here.

I copied it over to the same name as in Wikipedia, but also gave it a less lengthy alias AgeinYMD. So to get the output for someone who joined, say, June 13, 2012, you'd use (result: ). It's also possible to add a second date for it to calculate to rather than the current date like (result: ), but it would be pretty wasteful to make it keep repeating the calculation for something that's not going to change, so for members who've left a group it makes sense to just leave the information as simple text.