Template:AgeFull: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (/cat)
m (correcting Oni's launch date)
Line 71: Line 71:
}}</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:
}}</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:


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


whereas "Oni is <nowiki>{{AgeFull|year=2001|month=1}}</nowiki> old"<br />
whereas "Oni is <nowiki>{{AgeFull|year=2001|month=1}}</nowiki> old"<br />
Line 83: Line 83:
Oni is {{AgeFull|year=2001}} old
Oni is {{AgeFull|year=2001}} old


If you're content with just getting an age in whole years and you don't want the equivocating ("this or that"), use the simpler template [[Template:Age]].
If you're content with just getting an age in whole years and you don't want the equivocating "X or Y years old", use the simpler template [[Template:Age]].


[[Category:Utility templates]]</noinclude>
[[Category:Utility templates]]</noinclude>

Revision as of 14:29, 14 December 2021

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=29}} old"
yields
Oni is 23 years, 3 months, and 13 days old

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

and "Oni is {{AgeFull|year=2001}} old"
yields
Oni is 22 or 23 years old

If you're content with just getting an age in whole years and you don't want the equivocating "X or Y years old", use the simpler template Template:Age.