Wikia

GTA Wiki

Changes: Template:Age

Edit

Back to page

m
m (Cat)
 
Line 13: Line 13:
   
 
If you use this template for calculating someone's age at death or age at a certain date (rather than their current age), please substitute it into the page, for example: {{#expr:(2003)-(1989)-((7)<(7)or(7)=(7)and(14)<(23))}}.
 
If you use this template for calculating someone's age at death or age at a certain date (rather than their current age), please substitute it into the page, for example: {{#expr:(2003)-(1989)-((7)<(7)or(7)=(7)and(14)<(23))}}.
</noinclude>
+
</noinclude><noinclude>
  +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:07, February 8, 2008

This template returns the number of full years between two dates, or between a specified date and today (UTC).

Syntax:

  • {{age|year1|month1|day1}} - for age up to now
  • {{age|year1|month1|day1|year2|month2|day2}} - for date up to date2

Examples:

  • {{age|1989|7|23|2003|7|14}} - gives 13
  • {{age|1989|7|23}} - gives 17


If you use this template for calculating someone's age at death or age at a certain date (rather than their current age), please substitute it into the page, for example: 13.

Around Wikia's network

Random Wiki