Template:Date period/testcases
This is the template test cases page for the sandbox of Template:Date period. 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 and parsers with these links: |
Is this invalid, or should it be interpreted in a particular way? TheFeds 22:37, 17 December 2024 (UTC)
- Yes, it's invalid. It makes no sense. "From 10 January 2021 until 2021"? – Jonesey95 (talk) 22:58, 17 December 2024 (UTC)
{{Date period|2021|2022}}
{{Date period}}
Lua error in Module:Date_period at line 40: Either date A, date B, or both dates must be valid..
Lua error in Module:Date_period at line 40: Either date A, date B, or both dates must be valid..
Year ranges (or year-month ranges) seem like a plausible valid input that could be handled. TheFeds 22:37, 17 December 2024 (UTC)
Compare to examples at Wikipedia:Manual_of_Style/Dates_and_numbers#Ranges: would expect February 19–25. TheFeds 22:37, 17 December 2024 (UTC)
{{Date period|2021-02-19|2021-02-25|force-year=yes}}
{{Date period}}
February 19 – 25
February 19 – 25
It doesn't look like force-year
works? Would expect: February 19–25, 2021. TheFeds 22:37, 17 December 2024 (UTC)