Template:UF-date-part: Difference between revisions
(new) |
m (18 revisions imported from wikipedia:Template:UF-date-part) |
||
(17 intermediate revisions by 13 users not shown) | |||
Line 2: | Line 2: | ||
*[[hAtom]] (<code>class="updated"</code>) |
*[[hAtom]] (<code>class="updated"</code>) |
||
*[[ |
*[[hAudio]] (<code>class="published"</code>) |
||
*[[ |
*[[hCalendar]] (<code>class="dtstart"</code>) |
||
*[[hCard]] (<code>class="bday"</code>) |
|||
usually, but not always, within infobox or similar templates, or tables. |
usually, but not always, within infobox or similar templates, or tables. |
||
Its use in hCard is for |
Its use in hCard is for organizations, venues and similar; use {{tl|Birth date}} or {{tl|Birth date and age}} for people. |
||
Similarly, {{tl|End date}} returns the date as [[ |
Similarly, {{tl|End date}} returns the date as [[hCalendar]]'s (<code>class="dtend"</code>). |
||
:<nowiki>(<span class="dtstart updated">1993-02-24</span>) and (<span class="dtstart updated">1993-02-24T08:30</span>)</nowiki> |
|||
and: |
|||
:<nowiki> (<span class="dtend">1993-02-24T08:30</span>)</nowiki> |
|||
(disable CSS or view source to see the hidden ISO-formatted output). |
|||
'''Note: due to the requirement exclusive "dtend" in [[hCalendar]], and the accessibility problems that presents when a date is rendered (as seen without CSS) as <tt>28 March 1999 (1999-03-29)</tt> or even <tt>28 February 1999 (1999-03-01)</tt> or <tt>31 December 1999 (2000-01-01)</tt>, the ''Date end'' template should '''not''' be used for whole-day dates and should have a time of 23:59:59.''' |
|||
See [[WP:UF|the microformats project]] for further details. |
See [[WP:UF|the microformats project]] for further details. |
||
=== Limitation === |
=== Limitation === |
||
⚫ | |||
[[Category:Microformat (uF) message templates]] |
|||
⚫ | |||
</noinclude> |
Latest revision as of 23:24, 7 June 2021
This template also returns the date, hidden by CSS, in the ISO 8601 format needed by one or more of the following microformats:
usually, but not always, within infobox or similar templates, or tables.
Its use in hCard is for organizations, venues and similar; use {{Birth date}} or {{Birth date and age}} for people.
Similarly, {{End date}} returns the date as hCalendar's (class="dtend"
).
See the microformats project for further details.
Limitation[edit source]
This template has no provision to deal with a date in a non-Gregorian calendar. Also, ISO 8601 requires mutual agreement among those exchanging information before using years outside the range 1583–9999 CE. Therefore, use of this template for non-Gregorian dates or dates outside that range constitutes a false claim of conformance to the ISO 8601 standard.
Any editor encountering such usage should change the date to plain text with no template; or if not confident in doing so, raise the matter on this template's talk page.