Template:Age: Difference between revisions

WikiAdmin (talk | contribs)
m added interwiki link
WikiAdmin (talk | contribs)
m typo
 
Line 1: Line 1:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
== Usage ==
== Usage ==
Call the template with the birth date of birth (format yyyy|mm|dd) and the date of death=.
Call the template with the birth date of birth (format yyyy|mm|dd) and the date of death.
  <nowiki>{{Age|yyyy|mm|dd|yyyy|mm|dd}}</nowiki>
  <nowiki>{{Age|yyyy|mm|dd|yyyy|mm|dd}}</nowiki>