Template:Date/doc: Difference between revisions
Template page
More actions
Infi |
microformat class |
||
| Line 21: | Line 21: | ||
Result, date in the language of your preferences: | Result, date in the language of your preferences: | ||
{{Date|2009|1|9}} | {{Date|2009|1|9}} | ||
=== Microformat === | |||
{{Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the <!-- hAtom (class="updated"),--> [[w:HCalendar|hCalendar]] (<code>class="dtstart"</code>) <!-- and hCard (class="bday")--> microformat. See [[Commons:Microformats Project|the microformats project]]. | |||
Revision as of 11:25, 3 February 2009
Purpose
To show the date of publication or upload in the language set in the preferences.
Usage
{{Date|<year>|<month>|<day>}}
You can leave out parts of the data. This will show the data in the users interface language.
Example
Date example: 9 Januari 2009
{{Date|2009|1|9}}
Result, date in the language of your preferences: 9 January 2009
Microformat
also returns the date, hidden by CSS, in the ISO 8601 format needed by the hCalendar (class="dtstart") microformat. See the microformats project.