Difference between revisions of "Template:Film date/testcases"
imported>Cobaltcigs (with {{use mdy dates}}) |
imported>Jonesey95 |
||
| (One intermediate revision by the same user not shown) | |||
| Line 62: | Line 62: | ||
{{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | {{Testcase table |_collapsible=yes |_output=nowiki+ |_titlecode=yes | ||
|2001|9|11|New York City|2015|11|13|Paris}} | |2001|9|11|New York City|2015|11|13|Paris}} | ||
| + | |||
| + | ==Template followed by reference (use ref1 instead)== | ||
| + | ===Live template=== | ||
| + | {{film date|df=y|2020|01|23}}<ref>{{cite news|url=https://www.behindwoods.com/tamil-movies-cinema-news-16/mammoottys-shylocks-to-release-on-january-next-year.html|title=MAMMOOTTY’S SHYLOCK’S RELEASE PUSHED TO NEXT YEAR! REASON HERE|website= Behindwoods|access-date=2019-11-20}}</ref> | ||
| + | |||
| + | ===Sandbox template=== | ||
| + | {{film date/sandbox|df=y|2020|01|23}}<ref>{{cite news|url=https://www.behindwoods.com/tamil-movies-cinema-news-16/mammoottys-shylocks-to-release-on-january-next-year.html|title=MAMMOOTTY’S SHYLOCK’S RELEASE PUSHED TO NEXT YEAR! REASON HERE|website= Behindwoods|access-date=2019-11-20}}</ref> | ||
| + | |||
| + | ===Using ref1= === | ||
| + | {{testcase table|df=y|2020|01|23|ref1=<ref>{{cite news|url=https://www.behindwoods.com/tamil-movies-cinema-news-16/mammoottys-shylocks-to-release-on-january-next-year.html|title=MAMMOOTTY’S SHYLOCK’S RELEASE PUSHED TO NEXT YEAR! REASON HERE|website= Behindwoods|access-date=2019-11-20}}</ref>}} | ||
| + | |||
| + | {{reflist-talk}} | ||
==More than 5, in mixed chronological order, plus some whitespace== | ==More than 5, in mixed chronological order, plus some whitespace== | ||
Latest revision as of 19:55, 11 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: |
Template:Use mdy dates
Set |demospace=main to view/set outputted categories for the mainspace.
Contents
YYYY
11px Yes Same Template:Testcase table
YYYY|MM
11px Yes Same Template:Testcase table
YYYY|MM|DD
11px 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
11px Yes Same Template:Testcase table Template:Testcase table
YYYY|XX
16px Improved Old version disregards location, new version displays good output. Template:Testcase table 16px 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
11px Yes Same Template:Testcase table Template:Testcase table
YYYY|MM|XX
16px Improved Old version chokes, new version displays good output. Template:Testcase table Template:Testcase table
YYYY|MM|DD|XX
11px Yes Same Template:Testcase table Template:Testcase table
Template followed by reference (use ref1 instead)
Live template
- 23 January 2020
Sandbox template
- 23 January 2020
Using ref1=
More than 5, in mixed chronological order, plus some whitespace
16px 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
16px Improved Old version doesn't know what it's doing, new version performs same as previous. Template:Testcase table
same, with additional degenerate input
16px Improved Old version has several errors, new version performs same as previous.
- ↑ "MAMMOOTTY'S SHYLOCK'S RELEASE PUSHED TO NEXT YEAR! REASON HERE". Behindwoods. Retrieved November 20, 2019.
- ↑ "MAMMOOTTY'S SHYLOCK'S RELEASE PUSHED TO NEXT YEAR! REASON HERE". Behindwoods. Retrieved November 20, 2019.