Template:Birth date and age: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(10 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 ) | ||
|  {{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}} | |  {{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}} | ||
}} [[Category:{{{1}}} Births| | }} [[Category:{{{1}}} Births|{{{name-last|}}}, {{{name-first|}}}]] | ||
</includeonly><noinclude> | |||
}}]]</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
August 27, 1979
See also
Visit Template:Birth date and age/doc to edit this text! (How does this work?)