Difference between revisions of "Template:Film date/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Cobaltcigs
(this one's not going to work)
imported>Cobaltcigs
(annotate)
Line 4: Line 4:
  
 
==YYYY==
 
==YYYY==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|1979}}
 
|1979}}
  
 
==YYYY|MM==
 
==YYYY|MM==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|1966|9}}
 
|1966|9}}
  
 
==YYYY|MM|DD==
 
==YYYY|MM|DD==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|1969|4|20}}
 
|1969|4|20}}
  
 
==XX==
 
==XX==
(intentionally blank output with no date numbers)
+
{{not a bug}} New version intentionally blank due to lack of date-like numbers.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|Antarctica}}
 
|Antarctica}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|Antarctica|Monaco|San Marino|Long Beach}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
||||Iceland}}
  
 
==YYYY|||XX==
 
==YYYY|||XX==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|1975|||Italy}}
 
|1975|||Italy}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|1975|||Italy|1977|||Slovenia}}
  
 
==YYYY|XX==
 
==YYYY|XX==
 +
{{added|Improved}} Old version disregards location, new version displays good output.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
|1975|Italy}}
+
|1986|Turkey}}
 +
{{added|Improved}} Old version disregards location '''and''' interprets two years as part of same date, new version displays good output.
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|1986|Turkey|1991|Egypt}}
  
 
==YYYY|MM||XX==
 
==YYYY|MM||XX==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|1934|6||France}}
 
|1934|6||France}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|1934|6||France|1991|9||Belgium}}
  
 
==YYYY|MM|XX==
 
==YYYY|MM|XX==
 +
{{added|Improved}} Old version chokes, new version displays good output.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
|1934|6|France}}
+
|1953|3|California}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|1953|3|California|1959|11|Michigan}}
  
 
==YYYY|MM|DD|XX==
 
==YYYY|MM|DD|XX==
 +
{{yes check}} Same
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
|2001|9|11|New York City}}
 
|2001|9|11|New York City}}
 +
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 +
|2001|9|11|New York City|2015|11|13|Paris}}
  
 
==More than 5, in mixed chronological order, plus some whitespace==
 
==More than 5, in mixed chronological order, plus some whitespace==
 +
{{added|Improved}} Old version chokes on whitespace '''and''' stops at 5, new version trims whitespace, displays any number of rows, and sorts them chronologically.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
   |2007|8|9|Kenya
 
   |2007|8|9|Kenya
Line 49: Line 73:
 
   |2005|6|7|Chile
 
   |2005|6|7|Chile
 
}}
 
}}
===with parameters skipped rather than blank===
+
===same, but with parameters skipped rather than blank===
 +
{{added|Improved}} Old version doesn't know what it's doing, new version performs same as previous.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
   |2007|8|9|Kenya
 
   |2007|8|9|Kenya
Line 59: Line 84:
 
}}
 
}}
  
===with additional degenerate input===
+
===same, with additional degenerate input===
 +
{{added|Improved}} Old version has several errors, new version performs same as previous.
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes
 
   |2007|8|9|Kenya
 
   |2007|8|9|Kenya

Revision as of 02:24, 8 February 2020

Set |demospace=main to view/set outputted categories for the mainspace.

YYYY

 Yes Same Template:Testcase table

YYYY|MM

 Yes Same Template:Testcase table

YYYY|MM|DD

 Yes Same Template:Testcase table

XX

Template:Not a bug New version intentionally blank due to lack of date-like numbers. Template:Testcase table Template:Testcase table Template:Testcase table

YYYY|||XX

 Yes Same Template:Testcase table Template:Testcase table

YYYY|XX

plus Improved Old version disregards location, new version displays good output. Template:Testcase table plus Improved Old version disregards location and interprets two years as part of same date, new version displays good output. Template:Testcase table

YYYY|MM||XX

 Yes Same Template:Testcase table Template:Testcase table

YYYY|MM|XX

plus Improved Old version chokes, new version displays good output. Template:Testcase table Template:Testcase table

YYYY|MM|DD|XX

 Yes Same Template:Testcase table Template:Testcase table

More than 5, in mixed chronological order, plus some whitespace

File:Crystal Clear action edit add.png Improved Old version chokes on whitespace and stops at 5, new version trims whitespace, displays any number of rows, and sorts them chronologically. Template:Testcase table

same, but with parameters skipped rather than blank

File:Crystal Clear action edit add.png Improved Old version doesn't know what it's doing, new version performs same as previous. Template:Testcase table

same, with additional degenerate input

File:Crystal Clear action edit add.png Improved Old version has several errors, new version performs same as previous. Template:Testcase table