Template:AgeFull: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(okay, something is messed up; even with added link to serial date template, this date breaks the template)
(somehow that fixed the template but now there's a superfluous newline after the template output)
Line 69: Line 69:
   }}
   }}
  |some time
  |some time
}}</includeonly>
}}</includeonly><noinclude>Copied from Wikipedia's [[wikipedia:Template:For year month day|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:
<noinclude>Copied from Wikipedia's [[wikipedia:Template:For year month day|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:


<nowiki>{{AgeFull|year=2001|month=1|day=27}}</nowiki>
"Oni is <nowiki>{{AgeFull|year=2001|month=1|day=27}}</nowiki> old"<br />
yields<br />
yields<br />
{{AgeFull|year=2001|month=1|day=27}}
Oni is {{AgeFull|year=2001|month=1|day=27}} old
 
whereas "Oni is <nowiki>{{AgeFull|year=2001|month=1}}</nowiki> old"<br />
yields<br />
Oni is {{AgeFull|year=2001|month=1}} old
</noinclude>
</noinclude>

Revision as of 19:20, 13 June 2013

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 23 years, 9 months, and 29 days old

whereas "Oni is {{AgeFull|year=2001|month=1}} old"
yields
Oni is 23 years and 9 or 10 months old