[go: nahoru, domu]

Jump to content

User:Full-date unlinking bot/Test environment: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Unit test: AMreg(85),BRreg(62),AModd(13),BRodd(12),AMord(4),BRord(4),ordOf(39),piped(32),YMD(2),ISO1(5),ISO2(4),AMlist(60),BRlist(9),AMordList,ordOfList,pipedList(52)
Unit test: AMreg,,BRreg,,AModd,,BRodd,,AMord,,BRord,,ordOf,,piped,,YMD,,ISO1,,ISO2,,AMlist,,BRlist,,AMordList,,BRordList,ordOfList,pipedList,,proper,
(5 intermediate revisions by the same user not shown)
Line 348: Line 348:


Lower case:
Lower case:
* 4th of may 2008 - Redirect to [[May 4]]
* 4th of May 2008 - Redirect to [[May 4]]
* [[5th of may]] [[2008]] - Redirect to [[Cinco de Mayo]] (not to be delinked)
* [[5th of may]] [[2008]] - Redirect to [[Cinco de Mayo]] (not to be delinked)
* [[4th of july]] [[2008]] - Redirect to [[4th of July]] disambiguation page (not to be delinked)
* [[4th of july]] [[2008]] - Redirect to [[4th of July]] disambiguation page (not to be delinked)
* 24th of july 2008 - Redirect to [[July 24]]
* 24th of July 2008 - Redirect to [[July 24]]
* 29th of august 2008 - Redirect to [[August 29]]
* 29th of August 2008 - Redirect to [[August 29]]
* 3rd of october 2008 - Redirect to [[October 3]]
* 3rd of October 2008 - Redirect to [[October 3]]
* [[6th of october]] [[2008]] - Redirect to [[6th of October]] disambiguation page (not to be delinked)
* [[6th of october]] [[2008]] - Redirect to [[6th of October]] disambiguation page (not to be delinked)
* 5th of november 2008 - redirect to [[November 5]]
* 5th of November 2008 - redirect to [[November 5]]

== Lower case month forms ==

* 1 January 2009
* 2 February 2009
* 3 March 2009
* 4 April 2009
* 5 May 2009
* 6 June 2009
* 7 July 2009
* 8 August 2009
* 9 September 2009
* 10 October 2009
* 11 November 2009
* 31 December 2009

* Jan 1, 2009
* Feb 2, 2009
* Mar 3, 2009
* Apr 4, 2009
* May 5, 2009
* Jun 6, 2009
* Jul 7, 2009
* Aug 8, 2009
* Sep 9, 2009
* Oct 10, 2009
* Nov 11, 2009
* Dec 31, 2009
* Sept 30, 2009

* January 1, 2009
* February 02, 2009
* March 15, 2009
* April 30, 2009

* 1 Sep 2009
* 02 Oct 2009
* 30 November 2009
* 31 December 2009

* January 1st, 2009
* February 2nd, 2009
* March 3rd, 2009
* April 4th, 2009

* 1st Sep 2009
* 2nd Oct 2009
* 3rd November 2009
* 4th December 2009

* 1st of Sep 2009
* 2nd of Oct 2009
* 3rd of November 2009
* 4th of December 2009

Date ranges and lists
* 1/2 January – 2nd Feb and 3rd of March 2009
* January 1/2 – Feb 2nd and March 3rd 2009

exceptions
* [[january 1]], 2009 - not delinked, so not case adjusted
* JANUARY 1, 2009 - only all-lower-case months are adjusted
* january 1, 2009 - Was not linked to start with, so is not adjusted

Revision as of 06:26, 8 November 2009

This is where the bot will show off its guns before working in a live environment. Put any sort of date here that should be unlinked, and watch the bot remove their links in blazing glory (or laugh as it falls flat on its ass).

Pundit X was born on February 17, 1972 to a mother born on 15 April 1950 and a father born on 1945-01-01. Or something like that. With various forms of punctuation, you could say February 17, 1972 or maybe 15 April 1950. With over three million articles, you don't know just how atrocious the grammar of editors can be, especially when the autoformatter cleans up their messes.

  • March 4-September 19, 1881: James A. Garfield's presidency.
  • March 4—September 19, 1881: James A. Garfield's presidency.
  • 4 March—19 September 1881: James A. Garfield's presidency.

Although Julius Caesar's reform of the Julian calendar officially took effect 1 January 45 BC his rules concerning leap years were misinterpreted, and records of when leap years were actually observed are fragmentary. Augustus's reform of the Julian calendar lead to 29 February 8 being the first leap day that scholars generally agree was properly observed. Thus 1 March AD 4 is the earliest date that can with confidence be regarded as part of the continuous correct observance of the Julian calendar.

If you can think of more examples, add them.

Various single date formats

Ordinary dates
Coded date Display Expected result
1 April 2010 "1 April 2010" "1 April 2010"
April 1, 2010 "April 1, 2010" "April 1, 2010"
2010 April 1 "2010 April 1" "2010 April 1"
2010-04-01 "2010-04-01" "2010-04-01"
2010-04-01 "2010-04-01" "2010-04-01"
Normal variations (DMY)
Coded date Display Expected result
01 April 2010 "01 April 2010" "01 April 2010"
30 April 2010 "30 April 2010" "30 April 2010"
1 April 2010 "1 April 2010" "1 April 2010"
1 Apr 2010 "1 Apr 2010" "1 Apr 2010"
1 April 99 "1 April 99" "1 April 99"
1 April 100 BC "1 April 100 BC" "1 April 100 BC"
1 April 100_BC "1 April 100_BC" "1 April 100_BC"†
30 Apr 100 BC "30 Apr 100 BC" "30 Apr 100 BC"
†Underscore removal not presently implemented.
Normal variations (MDY
Coded date Display Expected result
April 01, 2010 "April 01, 2010" "April 01, 2010"
April 30, 2010 "April 30, 2010" "April 30, 2010"
April 1, 2010 "April 1, 2010" "April 1, 2010"
Apr 1, 2010 "Apr 1, 2010" "Apr 1, 2010"
April 1, 99 "April 1, 99" "April 1, 99"
April 1, 100 BC "April 1, 100 BC" "April 1, 100 BC"
April 1, 100_BC "April 1, 100_BC" "April 1, 100_BC"†
Apr 30, 100 BC "Apr 30, 100 BC" "Apr 30, 100 BC"
†Underscore removal not presently implemented.
Minor punctuation fixes (DMY)
Coded date Display Expected result
1 April 2010 "1 April 2010" "1 April 2010"†
1 April 2010 "1 April 2010" "1 April 2010"
1 April 2010 "1 April 2010" "1 April 2010"
1 April 2010 "1 April 2010" "1 April 2010"
1 April 2010 "1 April 2010" "1 April 2010"
†With added space.
Minor punctuation fixes (MDY)
Coded date Display Expected result
April 1, 2010 "April 1, 2010" "April 1, 2010"†
April 1, 2010 "April 1, 2010" "April 1, 2010"
April 1, 2010 "April 1, 2010" "April 1, 2010"
April 1, 2010 "April 1, 2010" "April 1, 2010"
April 1, 2010 "April 1, 2010" "April 1, 2010"
†With added comma and space.
Month names (DMY)
Coded date Display Expected result
1 January 2010 "1 January 2010" "1 January 2010"
1 February 2010 "1 February 2010" "1 February 2010"
1 March 2010 "1 March 2010" "1 March 2010"
1 April 2010 "1 April 2010" "1 April 2010"
1 May 2010 "1 May 2010" "1 May 2010"
1 June 2010 "1 June 2010" "1 June 2010"
1 July 2010 "1 July 2010" "1 July 2010"
1 August 2010 "1 August 2010" "1 August 2010"
1 September 2010 "1 September 2010" "1 September 2010"
1 October 2010 "1 October 2010" "1 October 2010"
1 November 2010 "1 November 2010" "1 November 2010"
1 December 2010 "1 December 2010" "1 December 2010"
Month abbreviations (MDY)
Coded date Display Expected result
Jan 1, 2010 "Jan 1, 2010" "Jan 1, 2010"
Feb 1, 2010 "Feb 1, 2010" "Feb 1, 2010"
Mar 1, 2010 "Mar 1, 2010" "Mar 1, 2010"
Apr 1, 2010 "Apr 1, 2010" "Apr 1, 2010"
May 1, 2010 "May 1, 2010" "May 1, 2010"
Jun 1, 2010 "Jun 1, 2010" "Jun 1, 2010"
Jul 1, 2010 "Jul 1, 2010" "Jul 1, 2010"
Aug 1, 2010 "Aug 1, 2010" "Aug 1, 2010"
Sep 1, 2010 "Sep 1, 2010" "Sep 1, 2010"
Oct 1, 2010 "Oct 1, 2010" "Oct 1, 2010"
Nov 1, 2010 "Nov 1, 2010" "Nov 1, 2010
Dec 1, 2010 "Dec 1, 2010" "Dec 1, 2010
Sept 1, 2010 "Sept 1, 2010" "Sept 1, 2010"
Year variants (DMY)
Coded date Display Expected result
1 April 2010 "1 April 2010" "1 April 2010"
1 April 999 "1 April 999" "1 April 999"
1 April 66 "1 April 66" "1 April 66"
1 April 5 "1 April 5" "1 April 5"
April 1, 1 BC "April 1, 1 BC" "April 1, BC"
April 1, 20 BC "April 1, 20 BC" "April 1, 20 BC"
April 1, 300 BC "April 1, 300 BC" "April 1, 300 BC"
April 1, 4000 BC "April 1, 4000 BC" "April 1, 4000 BC"
-0001-04-01 "-0001-04-01" "-0001-04-01"
-0001-04-01 "-0001-04-01" "-0001-04-01"


Various date range formats

Date range support recognizes a variety of forms that follow the general pattern: *month/day, month/day, ..., year", where:

  • "Month/day" is a linked month and day in either "[[month day]]" or "[[day month]]" form. Piped links of the form "[[month day|day]]" or "[[day month|day]]" are also recognized.
  • "Year" is a linked year of the form "[[yyyy]]" or possibly "[[yyyy BC]]".
  • Separating each part is any combination of comma, white space, a connecting punctuation character or word, and possibly more white space.
    • White space may include ordinary spaces, non-breaking spaces, or an HTML line break (<br>, <br/>, or <br />)
    • Connecting punctuation includes various dashes, hyphens, slash, ampersand, and a few other lesser used characters identified via database scans.
    • Connecting words include common conjunctions (and, or) and prepositions (to, through, until) identified during database scans, including a few abbreviations.

Although some of these forms may not reflect good style, the punctuation is left unchanged. The remainder of the date text is unlinked leaving plain text that matches what would normally be displayed to an anonymous user.

A few general cases:

  • January 1 – December 31, 2009
  • 01 Jan – 31 Dec 2009
  • August 28/29, 2009
  • 5/6 September 2009
  • October 8, 9, and 12 through 15, 2009
  • 20/21 November and
    5–11 November 2009

Various separator symbols

  • January 1December 31, 2009 (no punctuation)
  • January 1 December 31, 2009 (space only)
  • January 1 - December 31, 2009 (hyphen)
  • January 1 – December 31, 2009 (en dash
  • January 1 — December 31, 2009 (em dash)
  • January 1 − December 31, 2009 (minus)
  • January 1 ~ December 31, 2009 (tilda)
  • January 1 / December 31, 2009 (slash)
  • January 1 & December 31, 2009 (ampersand)
  • January 1 + December 31, 2009 (plus)
  • January 1 × December 31, 2009 (times symbol)
  • January 1 x December 31, 2009 (letter x)
  • January 1 , December 31, 2009 (comma)
  • January 1 ; December 31, 2009 (semicolon)
  • January 1 – December 31, 2009 (&ndash;)
  • January 1 — December 31, 2009 (&mdash;)
  • January 1 – December 31, 2009 ({{ndash}})

Various separator words

  • January 1 to 2, and 3 or 4, 2009
  • 5 until 6 till 7 til 8 February 2009
  • 9 through 10 thru 11 into 12 March 2009

Various separator punctuation

  • January 1–December 31, 2009 (no spaces)
  • January 1 – December 31, 2009 (single space)
  • January 1 – December 31, 2009 (multiple spaces)
  • January 1 – December 31, 2009 (&nbsp;)
  • January 1 – December 31, 2009 (non-breaking space character)
  • January 1 –
    December 31, 2009 (<br>)
  • January 1, –
    December 31, 2009 (comma, &nbsp;, en dash, <br>)

Some interesting real date list examples:

Nth Month forms (typically only used in lists)

  • 1st January 2009
  • 2nd February 2009
  • 3rd March 15 BC
  • 30th April 2009

Nth Month forms (typically only used in lists)

  • January 1st, 2009
  • February 2nd, 2009
  • March 3rd, 15 BC
  • April 30th, 2009

Piped dates

  • 1, 2009
  • 2, 2009
  • 3rd, 15 BC
  • 30th, 2009
  • 1st 2009
  • 2nd 2009
  • 3 15 BC
  • 30 2009
  • January 1, 2009
  • Feb 2, 2009
  • March 3rd, 15 BC
  • April 30th, 2009
  • 1st January 2009
  • 2 Feb 2009
  • 3rd March 15 BC
  • 30 April 2009

Ordinal, ordinal-of and piped dates in lists

  • January 1st & 2nd and March 3 to 30, 2009
  • 1st & 2nd of January and March 3rd to 30th, 2009
  • January 1st & 2nd and March 3rd to 30th, 2009
  • January 1st & 2nd and March 3 to 30, 2009
  • 1st/2nd February, 3–30 April 2009

Nth of Month forms

Lower case:

Lower case month forms

  • 1 January 2009
  • 2 February 2009
  • 3 March 2009
  • 4 April 2009
  • 5 May 2009
  • 6 June 2009
  • 7 July 2009
  • 8 August 2009
  • 9 September 2009
  • 10 October 2009
  • 11 November 2009
  • 31 December 2009
  • Jan 1, 2009
  • Feb 2, 2009
  • Mar 3, 2009
  • Apr 4, 2009
  • May 5, 2009
  • Jun 6, 2009
  • Jul 7, 2009
  • Aug 8, 2009
  • Sep 9, 2009
  • Oct 10, 2009
  • Nov 11, 2009
  • Dec 31, 2009
  • Sept 30, 2009
  • January 1, 2009
  • February 02, 2009
  • March 15, 2009
  • April 30, 2009
  • 1 Sep 2009
  • 02 Oct 2009
  • 30 November 2009
  • 31 December 2009
  • January 1st, 2009
  • February 2nd, 2009
  • March 3rd, 2009
  • April 4th, 2009
  • 1st Sep 2009
  • 2nd Oct 2009
  • 3rd November 2009
  • 4th December 2009
  • 1st of Sep 2009
  • 2nd of Oct 2009
  • 3rd of November 2009
  • 4th of December 2009

Date ranges and lists

  • 1/2 January – 2nd Feb and 3rd of March 2009
  • January 1/2 – Feb 2nd and March 3rd 2009

exceptions

  • january 1, 2009 - not delinked, so not case adjusted
  • JANUARY 1, 2009 - only all-lower-case months are adjusted
  • january 1, 2009 - Was not linked to start with, so is not adjusted