This is a documentation subpage for Template:Birth-date and age. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
{{Birth-date and age}} displays a person's birth date and age. Besides calculating the age of the person, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.
Note: The template may not calculate the age correctly if a full date (month, day, year) is not provided. For example, a person who was born in 1941 could be either 83 or 84, depending on whether they have reached their birthday in the current year:
{{Birth-date and age|1941}}
→ 1941 (age 84){{Birth-date and age|January 1941}}
→ January 1941 (age 84)When only the year is known, consider using {{Birth year and age}} instead:
{{Birth year and age|1941}}
→ 1941 (age 83–84){{Birth year and age|1941|1}}
→ January 1941 (age 83–84)