This is the template test cases page for the sandbox of Template:Calendar date. 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: |
Feature tests
edit{{Calendar date|holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
format=infobox ======format=infobox
edit{{Calendar date|format=infobox |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
1 day holiday with outside Israel offset in infobox
edit{{Calendar date|format=infobox |holiday=Shemini Atzeret |year=2018}}
{{Calendar date}}
Sunset, 30 September –
nightfall, 1 October
Sunset, 30 September –
nightfall, 1 October
1 day holiday with outside Israel offset not in infobox
edit{{Calendar date|holiday=Shemini Atzeret |year=2018}}
{{Calendar date}}
Sunset, 30 September 2018 – nightfall, 1 October 2018
Sunset, 30 September 2018 – nightfall, 1 October 2018
1 day holiday with startdate offset
edit{{Calendar date|holiday=Simchat Torah |year=2018}}
{{Calendar date}}
Sunset, 30 September 2018 – nightfall, 1 October 2018 (2 October outside of Israel)
Sunset, 30 September 2018 – nightfall, 1 October 2018 (2 October outside of Israel)
2 day holiday with 3 days of entries in database
edit{{Calendar date|format=infobox |holiday=Purim |year=2018}}
{{Calendar date}}
Sunset, 28 February –
nightfall, 1 March
Sunset, 28 February –
nightfall, 1 March
Localfile test (Labor Day)
edit{{Calendar date|holiday=Labor Day |year=2023}}
{{Calendar date}}
September 4, 2023
September 4, 2023
Hanukkah within a year boundary
edit{{Calendar date|holiday=Hanukkah |year=2023}}
{{Calendar date}}
Sunset, 7 December 2023 – nightfall, 15 December 2023
Sunset, 7 December 2023 – nightfall, 15 December 2023
Hanukkah crosses year boundary
edit{{Calendar date|holiday=Hanukkah |year=2024}}
{{Calendar date}}
Sunset, 25 December 2024 – nightfall, 2 January 2025
Sunset, 25 December 2024 – nightfall, 2 January 2025
Holiday name with a ' (Tisha B'Av)
edit{{Calendar date|holiday=Tisha B'Av |year=2024}}
{{Calendar date}}
Sunset, 12 August 2024 – nightfall, 13 August 2024
Sunset, 12 August 2024 – nightfall, 13 August 2024
test endoffset
edit{{Calendar date|holiday=Fast of the Firstborn |year=2018}}
{{Calendar date}}
Error in {{Calendar date}} - Check |holiday=
unknown holiday Fast of the Firstborn
Error in {{Calendar date}} - Check |holiday=
unknown holiday Fast of the Firstborn
Nth [day of week] of [month]
edit{{Calendar date|holiday=Thanksgiving |year=2025}}
{{Calendar date}}
November 27, 2025
November 27, 2025
last [day of week] of [month]
edit{{Calendar date|holiday=Memorial Day |year=2025}}
{{Calendar date}}
May 26, 2025
May 26, 2025
df=<default>
edit{{Calendar date|holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
df=<default> and format=infobox
edit{{Calendar date|format=infobox |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
df=mdy
edit{{Calendar date|df=mdy |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, September 29, 2019 – nightfall, October 1, 2019
Sunset, September 29, 2019 – nightfall, October 1, 2019
df=mdy and format=infobox
edit{{Calendar date|df=mdy |format=infobox |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, September 29 –
nightfall, October 1
Sunset, September 29 –
nightfall, October 1
df=dmy
edit{{Calendar date|df=dmy |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
df=dmy and format=infobox
edit{{Calendar date|df=dmy |format=infobox |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
df=iso
edit{{Calendar date|df=iso |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 2019-09-29 – nightfall, 2019-10-01
Sunset, 2019-09-29 – nightfall, 2019-10-01
df=iso and format=infobox
edit{{Calendar date|df=iso |format=infobox |holiday=Rosh Hashanah |year=2019}}
{{Calendar date}}
Sunset, 2019-09-29 –
nightfall, 2019-10-01
Sunset, 2019-09-29 –
nightfall, 2019-10-01
Unavailable holiday
edit{{Calendar date|holiday=Rush Hash |year=2019}}
{{Calendar date}}
Error in {{Calendar date}} - Check |holiday=
unknown holiday Rush Hash
Error in {{Calendar date}} - Check |holiday=
unknown holiday Rush Hash
Missing or empty holiday=
edit{{Calendar date|holiday= |year=2019}}
{{Calendar date}}
Error in {{Calendar date}} - Check |holiday=
missing holiday argument
Error in {{Calendar date}} - Check |holiday=
missing holiday argument
Missing or empty year=
edit{{Calendar date|holiday=Rosh Hashana |year=2019}}
{{Calendar date}}
Error in {{Calendar date}} - Check |holiday=
unknown holiday Rosh Hashana
Error in {{Calendar date}} - Check |holiday=
unknown holiday Rosh Hashana