Jump to content

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

no edit summary
(<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly|Template:Birth date and age}}</noinclude>)
No edit summary
Line 18: Line 18:


:<nowiki>{{Birth date and age|1993|2|24}}</nowiki> returns {{Birth date and age|1993|2|24}}
:<nowiki>{{Birth date and age|1993|2|24}}</nowiki> returns {{Birth date and age|1993|2|24}}
An optional perimeter, df, can be set to "yes" to display the day before the month. This is primarily used for articles about people from Europe.
Examples:
:<nowiki>{{Birth date|1993|2|24|df=yes}}</nowiki> returns "{{Birth date|1993|2|24|df=yes}}"
:<nowiki>{{Birth date and age|1993|2|24|df=yes}}</nowiki> returns "{{Birth date and age|1993|2|24|df=yes}}"


The templates also return the date, hidden by CSS, in the [[ISO 8601]] format needed by [[HCard|hCard microformat]]s. for example:
The templates also return the date, hidden by CSS, in the [[ISO 8601]] format needed by [[HCard|hCard microformat]]s. for example:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.