Difference between revisions of "Template:Age"

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
m (Added french interwiki link.)
Line 8: Line 8:
  
 
;Examples
 
;Examples
*<nowiki>{{age|1989|7|23|2003|7|14}}</nowiki> gives {{age|1989|7|23|2003|7|14}}
+
*<nowiki>{{age|1988|7|23|2003|7|14}}</nowiki> gives {{age|1988|7|23|2003|7|14}}
*<nowiki>{{age|1989|7|23}}</nowiki> gives {{age|1989|7|23}}
+
*<nowiki>{{age|1988|7|23}}</nowiki> gives {{age|1988|7|23}}
  
 
[[Category:Mathematical templates|{{PAGENAME}}]]
 
[[Category:Mathematical templates|{{PAGENAME}}]]

Revision as of 03:31, 11 July 2014

Documentation

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

Syntax
{{Age|year1|month1|day1|year2|month2|day2}}
{{Age|year1|month1|day1}}
Examples
  • {{age|1988|7|23|2003|7|14}} gives 14
  • {{age|1988|7|23}} gives 33