Difference between revisions of "Template:Age"

From K15 Database
Jump to navigation Jump to search
m (Protected "Template:Age" [edit=sysop:move=sysop])
m (If the user sends in -1 for the birthYear, birthMonth or birthDay we cannot properly calculate the age to return ??)
 
Line 1: Line 1:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly>
+
<includeonly>{{ #ifexpr:  {{{1}}} = -1 or {{{2}}} = -1 or {{{3}}} = -1| ?? | {{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}} }}</includeonly>

Latest revision as of 11:40, 1 February 2008