Category talk:Date mathematics templates

Latest comment: 14 years ago by Ed Poor in topic Zoo (examples)
WikiProject iconTemplates
WikiProject iconThis category is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
April May June
yesterday was Monday
Today is
tomorrow will be Wednesday

This week edit

Today's date is May 21.

The current week began on Sunday, Sunday, 19 May

Overlap edit

The overlap between the different templates actually doesn't seem too bad;

  1. 'Month+1' and 'Ed Poor/next month' are identical except for optional parameter and 'CURRENTMONTH' vs 'CURRENTMONTHNAME'.
  2. 'Day+1' and 'Ed Poor/tomorrow date' have similar intent, but very different implementation.
  3. 'Daycap' and 'Ed Poor/days in month' serve somewhat similar functions.

It shouldn't be too difficult to sort these out and come up with consistent naming methods. --CBDunkerson 18:41, 27 March 2006 (UTC)Reply

Zoo (examples) edit

Note that this category contains templates that currently needed more work and unification. Some of them are trials, and lack proper documentation and test cases. Use these templates with care, as they will need more cleanup.

Today's date is May 21.

The current US week began on Sunday, 20 May

last month:
April
May has
10 days
left in it
yesterday:
Monday
20 May
Today is
Tomorrow
day after tomorrow:
Thursday
23 May
next month:
June

There are 10 days remaining in May.

These templates help you with dynamic date calculations:

1 January 1901 was 123 years, 4 months and 20 days ago.

Right now, yesterday is wrong. It's says "yesterday: Wednesday May 1". It got the DOW right, but today is the 1st. Rocket000 (talk) 22:17, 1 May 2008 (UTC)Reply
Oh and the day after tomorrow is the 3rd, not the 4th. Rocket000 (talk) 22:18, 1 May 2008 (UTC)Reply
Okay, so is it time to put this animal out of its misery? I made a whole bunch of date calculating templates a few years ago (late 2006), but maybe they have been superseded by something better. Is it time to delete the lot of them? --Uncle Ed (talk) 17:56, 23 February 2010 (UTC)Reply

Infant age edit

I need help creating a new template for infant age or possibly a combination birth date and age template. I have looked at the templates at Category:Date mathematics templates. I think a template converted age for infants under 1 year to ## mos. and ## days and switched to ## yrs and ## mos. from say 1-3 and then just years above. However, maybe I need two new templates for {{age in months and days}} and {{Age in years and months}}. I have already posted at

  1. {{Birth date and age}} - Template_talk:Birth_date_and_age#Infant_parameterization
  2. {{Age in years and days}} - Template_talk:Age_in_years_and_days#Infant_age
  3. {{User current age}}'s leading editor - User_talk:Alfakim#Infant_age_template--TonyTheTiger (t/c/bio/tcfkaWCDbwincowtchatlotpsoplrttaDCLaM) 22:07, 2 October 2007 (UTC)Reply
P.S. for usage see a page like the children section of Tiger Woods's infobox.--TonyTheTiger (t/c/bio/tcfkaWCDbwincowtchatlotpsoplrttaDCLaM) 22:08, 2 October 2007 (UTC)Reply