Template:Birth date and age: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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]]}} | ||
}} {{#switch:{{ | }} {{#switch:{{PAGENAME}}| | ||
|Template:Infobox Person = [[Category:{{{1}}} Births|{{{name-last|}}}, {{{name-first|}}}]] | |Template:Infobox Person = [[Category:{{{1}}} Births|{{{name-last|}}}, {{{name-first|}}}]] | ||
|#default = | |#default = |
Revision as of 21:07, 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?)