Jump to content

Module talk:Infobox date field metadata/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

All 256 tests passed.

test_emitMetadata
Text Expected Actual
checkY {{#invoke:Infobox date field metadata|emitMetadata|3 May 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|May 3, 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|May 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|12:15:04, May 3, 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15:04</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15:04</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|May 3, 2013, 12:15:04|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15:04</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15:04</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|12:15, May 3, 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03T12:15</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|10pm, May 3, 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03T22</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03T22</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|12:15:04|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">12:15:04</span>)</span> <span style="display:none">&#160;(<span class="dtstart">12:15:04</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|12:15|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">12:15</span>)</span> <span style="display:none">&#160;(<span class="dtstart">12:15</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|3 May 2013 – 6 February 2014|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span> - <span class="dtend">2014-02-06</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span> - <span class="dtend">2014-02-06</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|3 May – 22 June 2013|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span> - <span class="dtend">2013-06-22</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05-03</span> - <span class="dtend">2013-06-22</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|May 2013 – February 2014|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013-05</span> - <span class="dtend">2014-02</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013-05</span> - <span class="dtend">2014-02</span>)</span>
checkY {{#invoke:Infobox date field metadata|emitMetadata|2013 – 2014|dtstart=yes|dtend=yes|noTrackingCat=yes}} <span style="display:none">&#160;(<span class="dtstart">2013</span> - <span class="dtend">2014</span>)</span> <span style="display:none">&#160;(<span class="dtstart">2013</span> - <span class="dtend">2014</span>)</span>
test_parseDate
Text Expected Actual
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013|noUnstrip=yes}} 2013 2013
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2113|noUnstrip=yes}} 2113 2113
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1913|noUnstrip=yes}} 1913 1913
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1113|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|322|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|96|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1913 BC|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 2013|noUnstrip=yes}} 2013-06 2013-06
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013 June|noUnstrip=yes}} 2013-06 2013-06
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013, June|noUnstrip=yes}} 2013-06 2013-06
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|August 2013|noUnstrip=yes}} 2013-08 2013-08
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|August, 2013|noUnstrip=yes}} 2013-08 2013-08
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 2013|noUnstrip=yes}} 2013-05 2013-05
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Jan 2013|noUnstrip=yes}} 2013-01 2013-01
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Dec 2013|noUnstrip=yes}} 2013-12 2013-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Dec. 2013|noUnstrip=yes}} 2013-12 2013-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|December, 2013|noUnstrip=yes}} 2013-12 2013-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 1013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 2113|noUnstrip=yes}} 2113-06 2113-06
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Plucktober 2013|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 196|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 96|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|96 June|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|27 August 2013|noUnstrip=yes}} 2013-08-27 2013-08-27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|30 November 2013|noUnstrip=yes}} 2013-11-30 2013-11-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|32 June 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|31 June 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|30 June 2013|noUnstrip=yes}} 2013-06-30 2013-06-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|28 February 2013|noUnstrip=yes}} 2013-02-28 2013-02-28
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|29 February 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|29 February 2012|noUnstrip=yes}} 2012-02-29 2012-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|29 February 2000|noUnstrip=yes}} 2000-02-29 2000-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|29 February 1900|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 June 3013|noUnstrip=yes}} 3013-06-12 3013-06-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 June 1213|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 Blobember 2013|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 Dec 2013|noUnstrip=yes}} 2013-12-12 2013-12-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 Dec. 2013|noUnstrip=yes}} 2013-12-12 2013-12-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|12 June 96|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May, 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3rd May 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3rd May, 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3, 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|August 27, 2013|noUnstrip=yes}} 2013-08-27 2013-08-27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|November 30, 2013|noUnstrip=yes}} 2013-11-30 2013-11-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Nov. 30, 2013|noUnstrip=yes}} 2013-11-30 2013-11-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 32, 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 31, 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 30, 2013|noUnstrip=yes}} 2013-06-30 2013-06-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 28, 2013|noUnstrip=yes}} 2013-02-28 2013-02-28
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29, 2013|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29, 2012|noUnstrip=yes}} 2012-02-29 2012-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29, 2000|noUnstrip=yes}} 2000-02-29 2000-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29, 1900|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 12, 3013|noUnstrip=yes}} 3013-06-12 3013-06-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 12, 1213|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Blobember 12, 2013|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|June 12, 96|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3, 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3rd 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3rd, 2013|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013 May 3|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013, May 3|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013 3 May|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013, 3 May|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-05-03|noUnstrip=yes}} 2013-05-03 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-08-27|noUnstrip=yes}} 2013-08-27 2013-08-27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-11-27|noUnstrip=yes}} 2013-11-27 2013-11-27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-06-32|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-06-31|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-06-30|noUnstrip=yes}} 2013-06-30 2013-06-30
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-02-28|noUnstrip=yes}} 2013-02-28 2013-02-28
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-02-29|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2012-02-29|noUnstrip=yes}} 2012-02-29 2012-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2000-02-29|noUnstrip=yes}} 2000-02-29 2000-02-29
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1900-02-29|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3013-06-12|noUnstrip=yes}} 3013-06-12 3013-06-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1413-06-12|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-14-12|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-00-12|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2003-11|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2003-13|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-05|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-13|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1999-11|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1906-08|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27|noUnstrip=yes}} 10:38:27 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:87|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:62:27|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|25:38:27|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 am|noUnstrip=yes}} 10:38:27 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 pm|noUnstrip=yes}} 22:38:27 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38|noUnstrip=yes}} 10:38 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38 am|noUnstrip=yes}} 10:38 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38 pm|noUnstrip=yes}} 22:38 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10 am|noUnstrip=yes}} 10 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10 pm|noUnstrip=yes}} 22 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38:27|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 8:38:27|noUnstrip=yes}} 1973-05-01 08:38:27 1973-05-01 08:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38:87|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:62:27|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 25:38:27|noUnstrip=yes}} Invalid date/time Invalid date/time
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38:27|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38:27|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27, 1 May 1973|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27, May 1, 1973|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27, 1973-05-01|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 May 1 1973|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38:27am|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38:27am|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38:27 am|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 am, 1 May 1973|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27am, May 1, 1973|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 am, 1973-05-01|noUnstrip=yes}} 1973-05-01 10:38:27 1973-05-01 10:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38:27 pm|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38:27 pm|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38:27pm|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27pm, 1 May 1973|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27 pm, May 1, 1973|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38:27pm, 1973-05-01|noUnstrip=yes}} 1973-05-01 22:38:27 1973-05-01 22:38:27
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38, 1 May 1973|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38, May 1, 1973|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38, 1973-05-01|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38 am|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38am|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38am|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38 am, 1 May 1973|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38am, May 1, 1973|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38am, 1973-05-01|noUnstrip=yes}} 1973-05-01 10:38 1973-05-01 10:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10:38pm|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10:38 pm|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10:38 pm|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38pm, 1 May 1973|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38 pm, May 1, 1973|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10:38 pm, 1973-05-01|noUnstrip=yes}} 1973-05-01 22:38 1973-05-01 22:38
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10 am|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10am|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10am|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10 am, 1 May 1973|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10am, May 1, 1973|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10am, 1973-05-01|noUnstrip=yes}} 1973-05-01 10 1973-05-01 10
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973, 10pm|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 1, 1973, 10 pm|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1973-05-01, 10 pm|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10pm, 1 May 1973|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10 pm, May 1, 1973|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|10 pm, 1973-05-01|noUnstrip=yes}} 1973-05-01 22 1973-05-01 22
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|This is not a date|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2004 was a nice year|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|Somewhere around 2004|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2004 <!--comment-->|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1733 (Russian)|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1933 (uncertain)|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1733 (old style)|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973 (but later cancelled)|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|1 May 1973 (UK), 4 June 1973 (USA)|noUnstrip=yes}} Unrecognized pattern Unrecognized pattern
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 - 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3, 2013 - February 12, 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 12 October 2013|noUnstrip=yes}} 2013-05-03; 2013-10-12 2013-05-03; 2013-10-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - October 12, 2013|noUnstrip=yes}} 2013-05-03; 2013-10-12 2013-05-03; 2013-10-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 - 12 May 2013|noUnstrip=yes}} 2013-05-03; 2013-05-12 2013-05-03; 2013-05-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - 12, 2013|noUnstrip=yes}} 2013-05-03; 2013-05-12 2013-05-03; 2013-05-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May - June 2013|noUnstrip=yes}} 2013-05; 2013-06 2013-05; 2013-06
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 2013 - February 2014|noUnstrip=yes}} 2013-05; 2014-02 2013-05; 2014-02
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013 - 2014|noUnstrip=yes}} 2013; 2014 2013; 2014
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 2013 - February 12 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - October 12 2013|noUnstrip=yes}} 2013-05-03; 2013-10-12 2013-05-03; 2013-10-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - 12 2013|noUnstrip=yes}} 2013-05-03; 2013-05-12 2013-05-03; 2013-05-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3rd May 2013 - 12th February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3rd, 2013 - February 12th, 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3rd May - 12th October 2013|noUnstrip=yes}} 2013-05-03; 2013-10-12 2013-05-03; 2013-10-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3rd - October 12th, 2013|noUnstrip=yes}} 2013-05-03; 2013-10-12 2013-05-03; 2013-10-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3rd - 12th May 2013|noUnstrip=yes}} 2013-05-03; 2013-05-12 2013-05-03; 2013-05-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3rd - 12th, 2013|noUnstrip=yes}} 2013-05-03; 2013-05-12 2013-05-03; 2013-05-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 - 3 May 2013|noUnstrip=yes}} 2013-05-03; 2013-05-03 2013-05-03; 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 - 2 May 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 - 4 March 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 - 4 May 2012|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 3 May 2013|noUnstrip=yes}} 2013-05-03; 2013-05-03 2013-05-03; 2013-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 2 May 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 4 March 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 4 May 2012|noUnstrip=yes}} 2012-05-03; 2012-05-04 2012-05-03; 2012-05-04
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 3 May 2012|noUnstrip=yes}} 2012-05-03; 2012-05-03 2012-05-03; 2012-05-03
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 - 2 May 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May - April 2013|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013 - 2012|noUnstrip=yes}} Invalid date range Invalid date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 &ndash; 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 – 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013 — 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013-12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 2013-February 12 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 2013-February 2014|noUnstrip=yes}} 2013-05; 2014-02 2013-05; 2014-02
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|2013-2014|noUnstrip=yes}} 2013; 2014 2013; 2014
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013&nbsp;&ndash; 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013&nbsp;&ndash;&nbsp;12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013&nbsp;– 12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May 2013&nbsp;–&nbsp;12 February 2014|noUnstrip=yes}} 2013-05-03; 2014-02-12 2013-05-03; 2014-02-12
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May|noUnstrip=yes}} Incomplete date Incomplete date
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3|noUnstrip=yes}} Incomplete date Incomplete date
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29|noUnstrip=yes}} Incomplete date Incomplete date
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May|noUnstrip=yes}} Incomplete date Incomplete date
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|October|noUnstrip=yes}} Incomplete date Incomplete date
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 - 26 May|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - 26|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|3 May - 5 April|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|May 3 - April 5|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|February 29 - April 5|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw|March 3 - February 29|noUnstrip=yes}} Incomplete date range Incomplete date range
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw||noUnstrip=yes}} Empty input Empty input
checkY {{#invoke:Infobox date field metadata|parseDateOutputRaw| |noUnstrip=yes}} Empty input Empty input
test_stripFieldExtras
Text Expected Actual
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013 </nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki> 3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki> 3 May 2013 </nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref>Well, hello there!</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013 <ref>Well, hello there!</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref name="hello">Well, hello there!</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013</ref>Broken</nowiki>}} 3 May 2013</ref>Broken 3 May 2013</ref>Broken
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref></ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref>Well, hello there!</ref><ref>Well, hello!</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref>Well, hello there!</ref><ref>Well, hello!</ref><ref>Well well well</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref name="hello">Well,</ref><ref name="hello">..hello!</ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref></ref><ref></ref></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref name="junky"/></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref name="junky"/><ref name="junky"/></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<ref name="junky"/><ref name="junky"/><ref name="junky"/></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013 <ref name="junky"/></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013<!--don't add extra dates--></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013 <!----></nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki><!--Per MOS somethng do something-->3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki><!----> 3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>{{Flag icon|USA}} 3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>{{Flagicon|UK}} 3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>{{Flagicon|UK}} {{Flag icon|USA}} 3 May 2013</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013{{Flagicon|UK}}</nowiki>}} 3 May 2013 3 May 2013
checkY {{#invoke:Infobox date field metadata|outputRawStripped|<nowiki>3 May 2013 {{Flagicon|UK}} {{Flag icon|USA}} </nowiki>}} 3 May 2013 3 May 2013

Start a discussion about improving the Module:Infobox date field metadata/testcases page

Start a discussion