Template:Date/doc: Difference between revisions
Template page
More actions
m Tl| |
update |
||
| Line 24: | Line 24: | ||
=== Microformat === | === Microformat === | ||
{{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]]. | {{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]]. | ||
=== See also === | |||
*{{tl|ISOdate}} - Template used to parse the date in {{tl|information}} | |||
<includeonly> | |||
[[Category:User interface language dependent templates|Parse source]] | |||
</includeonly> | |||
Revision as of 14:47, 5 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.
See also
- {{ISOdate}} - Template used to parse the date in {{Information}}