Template:UF-date-part: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Pigsonthewing
meta>Pigsonthewing
splititng
Line 9: Line 9:
Its use in hCard is for organisations, venues and similar; use {{tl|Birth date}} or {{tl|Birth date and age}} for people.
Its use in hCard is for organisations, venues and similar; use {{tl|Birth date}} or {{tl|Birth date and age}} for people.


Similarly, {{tl|End date}} returns the date as [[HCalendar|hCalendar]]'s (<code>class="dtend"</code>). For example:
Similarly, {{tl|End date}} returns the date as [[HCalendar|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.

Revision as of 21:32, 11 March 2010

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 organisations, 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

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.