User:Full-date unlinking bot/Test environment
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 April 15 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 April 15 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 419 September 1881: James A. Garfield's presidency.
- March 4mdash;September 19, 1881: James A. Garfield's presidency.
- March 4—September 19 1881: James A. Garfield's presidency.
Although Julius Caesar's reform of the Julian calendar officially took effect January 1 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 led to February 29 8 being the first leap day that scholars generally agree was properly observed. Thus March 1 4 AD 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
Coded date | Display | Expected result |
---|---|---|
[[April 1]] 2010 |
"April 1 2010" | "April 1, 2010" |
April 1, 2010 |
"April 1, 2010" | "April 1, 2010" |
2010 April 1/nowiki></code> || "2010 April 1 || "2010 April 1"
|-
| <code><nowiki>2010-04-01 |
"2010-04-01" | "2010-04-01" |
2010-04-01 |
"2010-04-01" | "2010-04-01" |
Coded date | Display | Expected result |
---|---|---|
[[April 1]] 2010 |
"April 1 2010" | "01 April 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"† |
[[30_Apr]] 100 BC |
"30_Apr 100 BC" | "Apr 30 100 BC" |
- †Underscore removal not presently implemented.
Coded date | Display | Expected result |
---|---|---|
April 1, 2010 |
"April 1, 2010" | "April 1, 2010" |
April 30, 2010 |
"April 30, 2010" | "April 30, 2010" |
April 1, 2010 |
"April 1, 2010" | "April 1, 2010" |
April 1, 2010 |
"April 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"† |
April 30 100 BC |
"April 30 100 BC" | "Apr 30, 100 BC" |
- †Underscore removal not presently implemented.
Coded date | Display | Expected result |
---|---|---|
[[April 1]]2010 |
"April 12010" | "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 space.
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.
Coded date | Display | Expected result |
---|---|---|
[[January 1]] 2010 |
"January 1 2010" | "January 1, 2010" |
[[February 1]] 2010 |
"February 1 2010" | "February 1, 2010" |
[[March 1]] 2010 |
"March 1 2010" | "March 1, 2010" |
[[April 1]] 2010 |
"April 1 2010" | "April 1, 2010" |
[[May 1]] 2010 |
"May 1 2010" | "May 1, 2010" |
[[June 1]] 2010 |
"June 1 2010" | "June 1, 2010" |
[[July 1]] 2010 |
"July 1 2010" | "July 1, 2010" |
[[August 1]] 2010 |
"August 1 2010" | "August 1, 2010" |
[[September 1]] 2010 |
"September 1 2010" | "September 1, 2010" |
[[October 1]] 2010 |
"October 1 2010" | "October 1, 2010" |
[[November 1]] 2010 |
"November 1 2010" | "November 1, 2010" |
[[December 1]] 2010 |
"December 1 2010" | "December 1, 2010" |
Coded date | Display | Expected result |
---|---|---|
January 1, 2010 |
"January 1, 2010" | "Jan 1, 2010" |
February 1, 2010 |
"February 1, 2010" | "Feb 1, 2010" |
March 1, 2010 |
"March 1, 2010" | "Mar 1, 2010" |
April 1, 2010 |
"April 1, 2010" | "Apr 1, 2010" |
May 1, 2010 |
"May 1, 2010" | "May 1, 2010" |
June 1, 2010 |
"June 1, 2010" | "Jun 1, 2010" |
July 1, 2010 |
"July 1, 2010" | "Jul 1, 2010" |
August 1, 2010 |
"August 1, 2010" | "Aug 1, 2010" |
September 1, 2010 |
"September 1, 2010" | "Sep 1, 2010" |
October 1, 2010 |
"October 1, 2010" | "Oct 1, 2010" |
November 1, 2010 |
"November 1, 2010" | "Nov 1, 2010 |
[[Dec 1]], 2010 |
"December 1, 2010" | "Dec 1, 2010 |
[[Sept 1]], 2010 |
"Sept 1, 2010" | "Sept 1, 2010" |
Coded date | Display | Expected result |
---|---|---|
[[April 1]] 2010 |
"April 1 2010" | "April 1, 2010" |
[[April 1]] 999 |
"April 1 999" | "April 1 999" |
[[April 1]] 66 |
"April 1 66" | "April 1 66" |
[[April 1]] 5 |
"April 1 5" | "April 1 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
- Jan 1 – Dec 31 2009
- August 2829, 2009
- 5/September 6 2009
- October 8 9, and 12 through 15, 2009
- 20/November 21 and
5–November 11 2009
Various separator symbols
- January 1December 31, 2009 (no punctuation)
- January 131 December 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 1x December 31, 2009 (letter x)
- January 1, December 31, 2009 (comma)
- January 1; December 31, 2009 (semicolon)
- January 1– December 31, 2009 (–)
- January 1— December 31, 2009 (—)
- January 1– December 31, 2009 (
{{ndash}}
)
Various separator words
- January 1to 2, and 3 or 4, 2009
- 5 until 6 till 7 til February 8 2009
- 9 through 10 thru 11 into March 12 2009
Various separator punctuation
- January 131 December 2009 (no spaces)
- January 1– December 31, 2009 (single space)
- January 1 –December 31 2009 (multiple spaces)
- January 1nbsp;– December 31, 2009 ( )
- January 1nbsp;– December 31, 2009 (non-breaking space character)
- January 1–
December 31, 2009 (<br>) - January 1 –
December 31, 2009 (comma, , en dash, <br>)
Some interesting real date list examples:
- May 15– May 25 19 July 2002 (from Like Phantoms, Forever)
- November 17× December 11, 1351 (from Patrick de Leuchars)
- September 30+ October 1, 1989 (from Mylène Farmer en concert)
- April 2324 April 1923 (from List of extinct birds)
- March 7{spaced ndash}}March 8, 1862 (from Battle of Pea Ridge)
- 8 & June 22,
5 & August 8, October 9 and December 16 1964 (from The Beach Boys Today!) - February May 17 4& 24, June 2& 12, September 1 12, & 21, 1966 (from List of The Beach Boys songs)
- July 30- August August 1 29& 30, and September 6, 2001 (from Überjam)
- June 78/9 and July 56/7 1997 (from Str8 Outta Northcote)
- January February 30 13 February March 27 8 March 14– March 16, 1967 (from 6th Congress of the Philippines)
- >November 8and 9, 2006
November 28 29, 30, December 6and 7, 2006 (from Coppa Italia 2006–07) - December 6 11, 12, 19 and 20, 2007
January 15 16, and 17, 2008 (from Coppa Italia 2007–08) - 9, 10, 11, 30, October 31,
November 1 & December 5 2007 (from Greek Cup 2007-08) - January 31, 1, 2 & February 7 2006 (1st leg)
8, 9 & February 22 2006 (from Greek Cup 2005-06) - June 18 29, 30, July 2 6 2008 (from 2008 Abkhazia bombings)
- March April 8 20 May 4 8, 12, 2008 (from 2008 Georgian spy plane shootdowns)
Dth Month forms
- January 1 2009
- February 2 2009
- March 3 15 BC
- April 30 2009
Month Dth forms
- January 1, 2009
- February 2, 2009
- March 3 15 BC
- April 30, 2009
Piped dates
Day-only forms are typically only used in lists
Ordinal, ordinal-of and piped dates in lists
- January 1& 2nd and March 3 to 30, 2009
- 1st & January 2 and March 3 to 30th, 2009
- January 1 & 2nd and March 3rd to 30th, 2009
- January 1 & 2nd and March 3 to 30, 2009
- 1st/February 2, 3–April 30 2009
- this one should keep the comma
- ...from April 912, 1981 at....
Nth of Month forms
- January 1 2008 - Redirect to January 1* January 2 2008 - Redirect to January 2* January 26 2008 - Redirect to January 26* 11th of February 2008 - Redirect to February 11* March 1 2008 - Redirect to March 1* March 31 2008 - Redirect to March 31* April 4 2008 - Redirect to April 4* April 6 2008 - Redirect to April 6* May 1 2008 - Redirect to May Day (not to be delinked)
- May 3 2008 - Redirect to May 3* May 5 2008 - Redirect to Cinco de Mayo (not to be delinked)
- May 7 2008 - Redirect to May 7* May 10 2008 - Redirect to May 10* 12th of May 2008 - Redirect to May 12* May 25 2008 - Redirect to May 25* July 3 2008 - Redirect to July 3* 4th of July 2008 - Disambiguation page (not to be delinked)
- July 6 2008 - Redirect to July 6* July 7 2008 - Redirect to July 7* July 22 2008 - Redirect to July 22* July 25 2008 - Redirect to July 25* August 4 2008 - Redirect to August 4* August 5 2008 - Redirect to August 5* August 9 2008 - Redirect to August 9* August 15 2008 - Redirect to August 15* September 3 2008 - Redirect to September 3* September 8 2008 - Redirect to September 8* 13th of September 2008 - Redirect to September 13* September 16 2008 - Redirect to September 16* September 18 2008 - Redirect to September 18* October 4 2008 - Redirect to October 4* October 6 2008 - Disambiguation page (not to be delinked)
- 12th of October 2008 - Redirect to October 12* October 27 2008 - Redirect to October 27* November 5 2008 - Redirect to November 5* November 8 2008 - Song (not to be delinked)
- 11th of December 2008 - Redirect to December 11* December 26 2008 - Redirect to December 26* December 31 2008 - Redirect to December 31
Lower case:
- may 4 2008 - Redirect to May 4* may 5 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)
- july 24 2008 - Redirect to July 24* august 29 2008 - Redirect to August 29* october 3 2008 - Redirect to October 3* october 6 2008 - Redirect to October 6 disambiguation page (not to be delinked)
- november 5 2008 - redirect to November 5
Lower case month forms
- January 1 2009
- February 2 2009
- March 3 2009
- April 4 2009
- May 5 2009
- June 6 2009
- July 7 2009
- August 8 2009
- September 9 2009
- October 10 2009
- November 11 2009
- December 31 2009
- January 1, 2009
- February 2, 2009
- March 3, 2009
- April 4, 2009
- May 5, 2009
- June 6, 2009
- July 7, 2009
- August 8, 2009
- September 9, 2009
- October 10, 2009
- November 11, 2009
- December 31, 2009
- sept 30, 2009
- January 1, 2009
- February 2, 2009
- March 15, 2009
- April 30, 2009
- Sep 1 2009
- Oct 2 2009
- November 30 2009
- December 31 2009
- January 1, 2009
- February 2, 2009
- March 3, 2009
- April 4, 2009
- sep 1 2009
- oct 2 2009
- november 3 2009
- 4th_december 2009
- sep 1 2009
- oct 2 2009
- november 3 2009
- December 4, 2009
Date ranges and lists
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