Difference between revisions of "Template:Age"

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
m (Remove trailing space)
m
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
; Syntax
 
; Syntax
:{{tlp|{{PAGENAME}}|''year1''|''month1''|''day1''|''year2''|''month2''|''day2''}}
+
:{{tlp|{{ILDIKO FERENCZI}}|''1988''|''6''|''10''|''1988''|''6''|''10''}}
:{{tlp|{{PAGENAME}}|''year1''|''month1''|''day1''}}
+
:{{tlp|{{ILDIKO FERENCZI }}|''1988''|''6''|''10''}}
  
 
;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}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 +
 +
[[fr:Modèle:Âge]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:55, 11 July 2014

Documentation

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

Syntax
{{[[Template:Template:ILDIKO FERENCZI|Template:ILDIKO FERENCZI]]|1988|6|10|1988|6|10}}
{{[[Template:Template:ILDIKO FERENCZI|Template:ILDIKO FERENCZI]]|1988|6|10}}
Examples
  • {{age|1988|7|23|2003|7|14}} gives 14
  • {{age|1988|7|23}} gives 33