Template:Birth date and age/doc: Difference between revisions

Add caveats for non-Gregorian dates
(rvv)
(Add caveats for non-Gregorian dates)
Line 13: Line 13:
==== To display the birth date only ====
==== To display the birth date only ====


:<nowiki>{{Birth date|year of birth|month of birth|day of birth|additional parameters}}</nowiki>
:<nowiki>{{Birth date|year of birth|month of birth|day of birth|additional parameters}}</nowiki> '''Do not use with non-Gregorian dates''' because the resulting hCard hidden date will be false.


==== To display a birth date with calculated age ====
==== To display a birth date with calculated age ====
Line 19: Line 19:
:<nowiki>{{Birth date and age|year of birth|month of birth|day of birth|additional parameters}}</nowiki>
:<nowiki>{{Birth date and age|year of birth|month of birth|day of birth|additional parameters}}</nowiki>


The parameter names 'year', 'month', and 'day' can be used instead of the first, second, and third parameters for 'Birth date and age' only. These parameter names are not available for the 'Birth date' template.
'''This form is only intended for living persons.''' In the rare case that a living person's birth date is given in a non-Gregorian calendar this template should not be used. The parameter names 'year', 'month', and 'day' can be used instead of the first, second, and third parameters for 'Birth date and age' only. These parameter names are not available for the 'Birth date' template.


==== {{tl|Bda}} is a redirect to {{tl|Birth date and age}} ====
==== {{tl|Bda}} is a redirect to {{tl|Birth date and age}} ====
Anonymous user