Difference between revisions of "Template:Film date/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update tests) |
imported>Cobaltcigs (tests) |
||
| Line 3: | Line 3: | ||
Set {{para|demospace|main}} to view/set outputted categories for the mainspace. | Set {{para|demospace|main}} to view/set outputted categories for the mainspace. | ||
| − | == | + | ==YYYY== |
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| − | | | + | |1979}} |
| − | | | + | |
| − | | | + | ==YYYY|MM== |
| − | | 4 = | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| − | | | + | |1966|9}} |
| − | | | + | |
| − | | | + | ==YYYY|MM|DD== |
| − | | | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| − | }} | + | |1969|4|20}} |
| + | |||
| + | ==XX== | ||
| + | (intentionally blank output with no date numbers) | ||
| + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| + | |Antarctica}} | ||
| + | |||
| + | ==YYYY|||XX== | ||
| + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| + | |1975|||Italy}} | ||
| + | |||
| + | ==YYYY|XX== | ||
| + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| + | |1975|Italy}} | ||
| + | ==YYYY|MM||XX== | ||
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| − | | | + | |1934|6||France}} |
| − | | | ||
| − | | | ||
| − | | | ||
| − | }} | ||
| − | == | + | ==YYYY|MM|XX== |
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| − | | | + | |1934|6|France}} |
| − | | | ||
| − | | | ||
| − | }} | ||
| + | ==YYYY|MM|DD|XX== | ||
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
| − | | | + | |2001|9|11|New York City}} |
| − | | | ||
| − | | | ||
| − | | | ||
| − | }} | ||
| − | == | + | ==Ignoring too many numbers== |
| − | {{ | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| − | | | + | |2002|7|7|7|7|7|7|Anchorage, AK}} |
| − | }} | ||
| − | {{ | + | ==More than 5, in mixed chronological order, plus some whitespace== |
| − | | | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| + | |2007|8|9|Kenya | ||
| + | |2011|||Estonia | ||
| + | |2003|4|5|Ukraine | ||
| + | |2001|2|3|France | ||
| + | |2009|10||Madagascar | ||
| + | |2005|6|7|Chile | ||
}} | }} | ||
| − | + | ===with parameters skipped rather than blank=== | |
| − | == | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| − | {{ | + | |2007|8|9|Kenya |
| − | | | + | |2011|Estonia |
| + | |2003|4|5|Ukraine | ||
| + | |2001|2|3|France | ||
| + | |2009|10|Madagascar | ||
| + | |2005|6|7|Chile | ||
}} | }} | ||
| − | {{ | + | ===with additional degenerate input=== |
| − | | | + | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes |
| + | |2007|8|9|Kenya | ||
| + | <!-- no date --> |Vatican City | ||
| + | |2011|Estonia | ||
| + | |2003|4|5|Ukraine | ||
| + | <!-- no date --> |North Korea | ||
| + | |2001|2|3|France | ||
| + | <!-- no date --> |Trinidad and Tobago | ||
| + | |2009|10|Madagascar | ||
| + | |2005|6|7|Chile | ||
}} | }} | ||
Revision as of 12:14, 7 February 2020
| 42px | This is the template test cases page for the sandbox of Template:Film date. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Set |demospace=main to view/set outputted categories for the mainspace.
Contents
YYYY
YYYY|MM
YYYY|MM|DD
XX
(intentionally blank output with no date numbers) Template:Testcase table