User talk:Kniblet Beast/Sandbox/Datediff

The Proposal
I'd like to update the Template:Datediff function to include the ability to compare dates and return the number of years, similar to standard functions of the same name used in various development languages. The purpose, for one, is to give the ability to handle things such as calculating age based on a supplied birthday. I have setup the example Datediff such that it will be backwards compatible with any existing pages that use the template as those expect the value to be returned in days. Ideally, after this update, I would like to then update the Template:Age function to return just years (but keep the default to return years and days for backwards compatibility as well). I know it's not a big thing, but I put it in the "helpful/fun to have" category. This is my first attempt anyway at trying to contribute to the wiki, even if it is small. Thoughts are appreciated. Thank you. -- Kniblet Beast 07:01, 17 September 2010 (UTC)
 * Why don't you instead make a new template that is specialized to year-diffs, which then itself could use the original datediff template. poke | talk 15:32, 17 September 2010 (UTC)
 * I thought about doing that, except I was trying to keep it close to a typical coding development standard that takes parameters, although the parameters are really in partial reverse order from that anyway. No issues creating a Yeardiff or Datediffbyyear template. Would want some thoughts on naming if you want me to go that way. -- Kniblet Beast 17:45, 17 September 2010 (UTC)
 * Note however that wiki code is not a programming language ;) - What about using a subpage? Datediff/year poke | talk 22:07, 17 September 2010 (UTC)
 * Excellent points. Still new at all this and now that you say that, it makes perfect sense. That's what I'll do.  From the sound of it, doesn't seem like conceptually there is no objection. Thanks for your great input. -- Kniblet Beast  02:05, 18 September 2010 (UTC)