Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Feature tests  





2 Citations  





3 df tests  





4 Error tests  














Template:Calendar date/testcases







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Calendar date


Feature tests

[edit]
Basic
{{calendar date|holiday=Rosh Hashanah|year=2019}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
Expanded code
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
format=infobox
{{calendar date|holiday=Rosh Hashanah|year=2019|format=infobox}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
Expanded code
Sunset, 29 September –<br>nightfall, 1 October
Sunset, 29 September –<br>nightfall, 1 October
1 day holiday with outside Israel offset in infobox
{{calendar date|holiday=Shemini Atzeret|year=2018|format=infobox}}
Sunset, 30 September –
nightfall, 1 October
Sunset, 30 September –
nightfall, 1 October
Expanded code
Sunset, 30 September –<br>nightfall, 1 October
Sunset, 30 September –<br>nightfall, 1 October
1 day holiday with outside Israel offset not in infobox
{{calendar date|holiday=Shemini Atzeret|year=2018}}
Sunset, 30 September 2018 – nightfall, 1 October 2018
Sunset, 30 September 2018 – nightfall, 1 October 2018
Expanded code
Sunset, 30 September 2018 – nightfall, 1 October 2018
Sunset, 30 September 2018 – nightfall, 1 October 2018
1 day holiday with startdate offset
{{calendar date|holiday=Simchat Torah|year=2018}}
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)
Expanded code
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
{{calendar date|holiday=Purim|year=2018|format=infobox}}
Sunset, 28 February –
nightfall, 1 March
Sunset, 28 February –
nightfall, 1 March
Expanded code
Sunset, 28 February –<br>nightfall, 1 March
Sunset, 28 February –<br>nightfall, 1 March
Localfile test (Labor Day)
{{calendar date|holiday=Labor Day|year=2023}}
September 4, 2023
September 4, 2023
Expanded code
September 4, 2023
September 4, 2023
Hanukkah within a year boundary
{{calendar date|holiday=Hanukkah|year=2023}}
Sunset, 7 December 2023 – nightfall, 15 December 2023
Sunset, 7 December 2023 – nightfall, 15 December 2023
Expanded code
Sunset, 7 December 2023 – nightfall, 15 December 2023
Sunset, 7 December 2023 – nightfall, 15 December 2023
Hanukkah crosses year boundary
{{calendar date|holiday=Hanukkah|year=2024}}
Sunset, 25 December 2024 – nightfall, 2 January 2025
Sunset, 25 December 2024 – nightfall, 2 January 2025
Expanded code
Sunset, 25 December 2024 – nightfall, 2 January 2025
Sunset, 25 December 2024 – nightfall, 2 January 2025
Holiday name with a ' (Tisha B'Av)
{{calendar date|holiday=Tisha B'Av|year=2024}}
Sunset, 12 August 2024 – nightfall, 13 August 2024
Sunset, 12 August 2024 – nightfall, 13 August 2024
Expanded code
Sunset, 12 August 2024 – nightfall, 13 August 2024
Sunset, 12 August 2024 – nightfall, 13 August 2024
test endoffset
{{calendar date|holiday=Fast of the Firstborn|year=2018}}
Error in {{Calendar date}} - Check |holiday= unknown holiday Fast of the Firstborn
Error in {{Calendar date}} - Check |holiday= unknown holiday Fast of the Firstborn
Expanded code
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> unknown holiday Fast of the Firstborn</span>[[Category:Calendar date template errors]]
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> unknown holiday Fast of the Firstborn</span>[[Category:Calendar date template errors]]
Nth [day of week] of [month]
{{calendar date|holiday=Thanksgiving|year={{CURRENTYEAR}}}}
November 28, 2024
November 28, 2024
Expanded code
November 28, 2024
November 28, 2024
last [day of week] of [month]
{{calendar date|holiday=Memorial Day|year={{CURRENTYEAR}}}}
May 27, 2024
May 27, 2024
Expanded code
May 27, 2024
May 27, 2024

Citations

[edit]
Via calculator

{{calendar date|holiday=Yom Kippur|year=2024|cite=}}

Sunset, 11 October 2024 – nightfall, 12 October 2024
Sunset, 11 October 2024 – nightfall, 12 October 2024

References


Via calculator with source

{{calendar date|holiday=Education and Sharing Day|year=2024|cite=}}

19 April 2024
19 April 2024

References


Via localfile

{{calendar date|holiday=Tisha B'Av|year=2024|cite=}}

Sunset, 12 August 2024 – nightfall, 13 August 2024[1]
Sunset, 12 August 2024 – nightfall, 13 August 2024[1]

References

  1. ^ a b "Dates for Tisha B'Av". Hebcal.com by Danny Sadinoff and Michael J. Radwin (CC-BY-3.0). Retrieved 2018-08-26.

df tests

[edit]
df=<default>
{{calendar date|holiday=Rosh Hashanah|year=2019}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
Expanded code
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
df=<default> and format=infobox
{{calendar date|holiday=Rosh Hashanah|year=2019|format=infobox}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
Expanded code
Sunset, 29 September –<br>nightfall, 1 October
Sunset, 29 September –<br>nightfall, 1 October
df=mdy
{{calendar date|holiday=Rosh Hashanah|year=2019|df=mdy}}
Sunset, September 29, 2019 – nightfall, October 1, 2019
Sunset, September 29, 2019 – nightfall, October 1, 2019
Expanded code
Sunset, September 29, 2019 – nightfall, October 1, 2019
Sunset, September 29, 2019 – nightfall, October 1, 2019
df=mdy and format=infobox
{{calendar date|holiday=Rosh Hashanah|year=2019|df=mdy|format=infobox}}
Sunset, September 29 –
nightfall, October 1
Sunset, September 29 –
nightfall, October 1
Expanded code
Sunset, September 29 –<br>nightfall, October 1
Sunset, September 29 –<br>nightfall, October 1
df=dmy
{{calendar date|holiday=Rosh Hashanah|year=2019|df=dmy}}
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
Expanded code
Sunset, 29 September 2019 – nightfall, 1 October 2019
Sunset, 29 September 2019 – nightfall, 1 October 2019
df=dmy and format=infobox
{{calendar date|holiday=Rosh Hashanah|year=2019|df=dmy|format=infobox}}
Sunset, 29 September –
nightfall, 1 October
Sunset, 29 September –
nightfall, 1 October
Expanded code
Sunset, 29 September –<br>nightfall, 1 October
Sunset, 29 September –<br>nightfall, 1 October
df=iso
{{calendar date|holiday=Rosh Hashanah|year=2019|df=iso}}
Sunset, 2019-09-29 – nightfall, 2019-10-01
Sunset, 2019-09-29 – nightfall, 2019-10-01
Expanded code
Sunset, 2019-09-29 – nightfall, 2019-10-01
Sunset, 2019-09-29 – nightfall, 2019-10-01
df=iso and format=infobox
{{calendar date|holiday=Rosh Hashanah|year=2019|df=iso|format=infobox}}
Sunset, 2019-09-29 –
nightfall, 2019-10-01
Sunset, 2019-09-29 –
nightfall, 2019-10-01
Expanded code
Sunset, 2019-09-29 –<br>nightfall, 2019-10-01
Sunset, 2019-09-29 –<br>nightfall, 2019-10-01

Error tests

[edit]
Unavailable holiday
{{calendar date|holiday=Rush Hash|year=2019}}
Error in {{Calendar date}} - Check |holiday= unknown holiday Rush Hash
Error in {{Calendar date}} - Check |holiday= unknown holiday Rush Hash
Expanded code
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> unknown holiday Rush Hash</span>[[Category:Calendar date template errors]]
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> unknown holiday Rush Hash</span>[[Category:Calendar date template errors]]
Missing or empty holiday=
{{calendar date|holiday=|year=2019}}
Error in {{Calendar date}} - Check |holiday= missing holiday argument
Error in {{Calendar date}} - Check |holiday= missing holiday argument
Expanded code
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> missing holiday argument</span>[[Category:Calendar date template errors]]
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;holiday=</code> missing holiday argument</span>[[Category:Calendar date template errors]]
Missing or empty year=
{{calendar date|holiday=Rosh Hashana|year=2019}}
Error in {{Calendar date}} - Check |year= missing year argument
Error in {{Calendar date}} - Check |year= missing year argument
Expanded code
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;year=</code> missing year argument</span>[[Category:Calendar date template errors]]
<span style="font-size:100%" class="error citation-comment">Error in {{Calendar date}} - Check <code style="color:inherit; border:inherit; padding:inherit;">&#124;year=</code> missing year argument</span>[[Category:Calendar date template errors]]

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Calendar_date/testcases&oldid=892594504"

Category: 
Template test cases
Hidden category: 
Calendar date template errors
 



This page was last edited on 15 April 2019, at 16:08 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki