Template:Date/doc: Difference between revisions
Template page
More actions
microformat class |
m Tl| |
||
| Line 23: | Line 23: | ||
=== Microformat === | === 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]]. | {{Tl|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 23:27, 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
{{Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the hCalendar (class="dtstart") microformat. See the microformats project.