Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:Manual of Style/Dates and numbers/Date autoformatting

From Wikipedia, the free encyclopedia
<Wikipedia:Manual of Style |Dates and numbers
This Wikipedia page has beensuperseded byWikipedia:Manual of Style/Dates and numbers#Dates, months and years and isretained primarily for historical reference.
This is afailed proposal.
Consensus for its implementation was not established within a reasonable period of time. If you want to revive discussion, please usethe talk page or initiate a thread atthe village pump. (September 2008.)

Since at least 2004, it has been possible for registered users to set a preference regarding the way dates appear to them. Wikilinking alldates / years purely for the use of autoformatting is now discouraged (SeeMOS:UNLINKDATES).

There are four possible formats to choose from:

  • MonthName Day, Year as in January 15, 2001 (symbolized as MMMM dD, YYYY)
  • Day MonthName Year as in 15 January 2001 (symbolized as dD MMMM YYYY)
  • Year MonthName Day as in 2001 January 15 (symbolized as YYYY MMMM DD)
  • Year-MonthNumber-Day as in 2001-01-15 (symbolized as YYYY-MM-DD) Though not identified as such on the preferences page, this is the same way dates are displayed inISO 8601 format.

Dates that are wikilinked (see below) are autoformatted according to the user's chosen preference.

Autoformatting dates has had several disadvantages:

  • Its effects can only be seen by registered editors who select a date preference (My preferences → Date and time → Date format). (As with other interface modifications, unregistered users are unable to access Wikipedia's preference settings and cannot choose a date format preference.) Therefore, most of the very individuals who have been largely responsible for the correctness and good style of articles have not seen what the vast majority of readers see.
    • As a result, editors did not notice that the source code often had two (or possibly more) date formats in the same article, while most users saw inconsistent date formats on the same page.
    • Some dates were entered in source code in one or more of the last two formats. While most editors did not notice this, most users saw a format that was much less familiar to them than either MDY or DMY.
  • Autoformatting is implemented by wikilinking dates. The resulting links point to articles on notable events that happened on that particular date or year. Since these lists of historical trivia typically have little or nothing to do with the subject of the article linked from, the links are superfluous, and only serve to clutter articles unnecessarily. All links from articles should be ofhigh value to the reader, that is, following them should genuinely help the reader understand the topic more fully. (SeeWP:CONTEXT.)
  • The last format, being most like ISO 8601, was sometimes referred to asbeing ISO format. However, ISO 8601 format implies use of theGregorian calendar, and Wikipedia normally uses theJulian calendar for historic dates before the adoption of the Gregorian calendar—all dates before 1582, many before 1752, and some as late as the twentieth century. Autoformatting into and out of this format could be misleading or erroneous for dates on the Julian Calendar, if one thought this format was truly ISO 8601.

The following information is provided to document how date autoformatting works.

A combination of a day and a month, plus optionally a year, is autoformatted by adding square brackets, such as in these examples:

  • [[5 November]]
  • [[November 5]]
  • [[5 November]] [[1989]]
  • [[November 5]], [[1989]]

The square brackets instruct the MediaWiki software to format the item according to a user'sdate preferences.

The following table shows how the autoformatting mechanism behaves. The preference settings that a registered user can choose are displayed in the second row. The year and the day-month combination are wikilinked separately, except for dates in theISO 8601 format. Full date formats not found in the first column are not autoformatted when wikilinked, and are likely to produce a redlink; for instance,

to all users, regardless of their date preference (or non-preference).

  • However [[May 15, 2005]],but no other format, will produce a wikilink to a separate page forMay 15, 2005. This is true for all dates fromJanuary 1, 2003 (retrieved by typing [[January 1, 2003]]) toJuly 31, 2005.
What you typeWhat logged-in registered users see
(settings on first row)
What others will see[A]
January 15, 200115 January 20012001 January 152001-01-15No preference
[[May 15]]May 1515 MayMay 15May 15May 15May 15
[[15 May]]May 1515 May15 May15 May15 May15 May
[[May 15]], [[2005]]May 15,200515 May20052005May 152005-05-15May 15,2005May 15,2005
[[15 May]] [[2005]]May 15,200515 May20052005May 152005-05-1515 May200515 May2005
  [[2005-05-15]] [B]May 15,200515 May20052005May 152005-05-152005-05-152005-05-15
  1. ^ Non-registered users and registered users not logged in
  2. ^ Editors are discouraged from using this format since non-registered users, who constitute the majority of readers, may see a hard-to-read date format.

Even when surrounded by square brackets, those dates that do not contain both a day and a month—such as solitary months, solitary days of the week, solitary years, decades, centuries, and month-year combinations—are not autoformatted. One could make them links by using the standard piped-link notation, but the same advice applies here: such links should not be created unless they are of high value to the reader. (SeeWP:CONTEXT.)

  • Autoformatting does not function for piped links to date elements, such as "[[20 June|the 20th of June]]" or "[[1997 in South African sport|1997]]". (Several forms of piped links override the date-formatting function.)
  • Links to date ranges in the same calendar month, such as "[[December 13–17]]" or "the night of [[30/31 May]]" cause autoformatting to fail. The autoformatting mechanism will output such dates in a damaged form:30/May 31, etc.

Date elements on disambiguation pages and section headings should never be linked; the same applies to quotations, unless the original quote is linked.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Manual_of_Style/Dates_and_numbers/Date_autoformatting&oldid=877478297"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp