Template:Age

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search

This template returns the number of full years between two specified dates. If the second parameter is not included, it will return the number of full years between a specified date and today's date.

Syntax:
{{age|date1|date2}} or
{{age|date1}}
Examples:
{{age|November 23, 1990|August 12, 2005}} returns "14"
{{age|November 23, 1990}} returns "33"
The full range of possible date formats is based on php's strtotime() function and is explained here, but for simplicity it's usually best to just stick to the format above.
{{age|November 23 1990}} returns "33"
{{age|23 November 1990}} returns "33"
{{age|1990-11-23}} returns "33"
Note:
This template does not check for incorrect input.