Template:AgeFull

From OniGalore
Revision as of 19:20, 13 June 2013 by Iritscen (talk | contribs) (somehow that fixed the template but now there's a superfluous newline after the template output)

Copied from Wikipedia's For year month day template. The three parameters are "year", "month", and "day", all optional. Here's what happens if you supply a specific date:

"Oni is {{AgeFull|year=2001|month=1|day=27}} old"
yields
Oni is 24 years and 22 days old

whereas "Oni is {{AgeFull|year=2001|month=1}} old"
yields
Oni is 24 years and 0 or 1 month old