Template:Birth date and age: Difference between revisions

From LPedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 7: Line 7:
}}{{#ifexpr: ( {{{3|{{{day}}}}}} > 31 ) OR ( {{{3|{{{day}}}}}} < 1 )
}}{{#ifexpr: ( {{{3|{{{day}}}}}} > 31 ) OR ( {{{3|{{{day}}}}}} < 1 )
  | &#32;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}
  | &#32;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}
}} [[Category:{{{1}}} Births|{{{surname|}}}]] </includeonly><noinclude>
}} [[Category:{{{1}}} Births|{{{name-last|}}}, {{{name-first|}}}]]
</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:21, 11 October 2017

Template documentation (for the above template, sometimes hidden or invisible)

Usage

Use in the "birth-date" parameter of Template:Infobox Person on people pages to calculate age for living people with known birth dates.

{{Birth date and age|<BIRTH-Y>|<BIRTH-M>|<BIRTH-D>}}

Example

Example, with Nicholas Sarwark, where the birth date is August 27, 1979.

Code

{{Birth date and age|1979|8|27}}

Result

(1979-08-27) August 27, 1979 (age 45)


See also