Template talk:Calendar

Starting weeks with Monday
A few years ago, I changed the then-major (and now deleted) calendar template to start weeks with Monday, citing the ISO standard. The lack of reversions seemed to show broad agreement with the change, probably also for the reason that besides being a standard, it's actually used by many people (if not most), and even in the 'deviant' U.S., Saturday and Sunday are called the "weekend".

Now I find that by template reform, we're back to Sunday. The option to start the calendar with a Monday doesn't really help because of the hundreds of inclusions that would need to be changed, not to mention that this should be a central decision, not a subject for edit wars in individual articles. Has there ever been a central decision to defy ISO and use the U.S. approach for the English-language Wikipedia? Urs Enke (talk) 12:58, 6 April 2015 (UTC)
 * There’s been some discussion about it at Talk:Common year starting on Monday. — Christoph Päper 22:02, 1 June 2016 (UTC)

Replacing CalendarCustom
This template used to produce only full-year calendars. It called the former CalendarCustom which produced single-month templates. The old CalendarCustom has now been into this template which now gives you the option of full-year or single-month calendars. Jimp 08:59, 24 September 2013 (UTC)

Replacing January calendar, February calendar, etc.
This template can replace these templates. All the functions of these old templates are now possible with this one with the following exception. These templates have the parameters,   and   which change what appears on the month line. These could actually be added here but they really hadn't been used so there probably isn't any need. Jimp 11:42, 23 September 2013 (UTC)


 * The other thing these templates do is display the year in Roman numerals. We could make that optional on this template but I can't think why. The reason for using Roman numerals in the first place is beyond me. Jimp 11:53, 23 September 2013 (UTC)


 * Right, here's a reason for not using Roman numerals for years (even as an option). Jimp 09:37, 14 October 2013 (UTC)

Replacing Month3 and Year3
This template can also replace and  now that there is the option to include ISO week numbers. The difference is the colour of the text. With those templates you can colour the week numbers (the default being green). This is useful for distinguishing week numbers from dates of the month. However, this template uses a background instead, which is arguably better for colour blind people and for greyscale printouts. The colour of dates can also be changed according to the day of the week (be they Saturdays, Sundays or weekdays). The idea had been to colour Sundays red until it was realised that this made them look like empty links. Again, it would be better to change the background than the text. However, I don't really see the need to bother. The only other thing that Month3 has but this lacks was a parameter to adjust the Cascading Style Sheets value used by the table, which, again could be added here if ever necessary. Note that this template is much easier to use than those. Jimp 09:36, 24 September 2013 (UTC)

Faulty lk parameter?
,, and   fail to make the month names linked. They do work if a (non-empty)  or   is passed, however. The same is true for the day linking values to the  parameter (i.e. they only work if a prefix or suffix is supplied). , could you take a look? --Waldir talk 15:31, 21 June 2014 (UTC)
 * I've just checked them on my sandbox page and they're working there but there could be some other problem. On which page are they failing? Jimp 10:29, 24 June 2014 (UTC)

Help
Hello, I copied this template code into Panjabi Wikipedia. But for some sub-templates, I am getting expression error for dates beyond 28. Can someone please check it. pa:ਫਰਮਾ:Calendar/month/link dm. -- Vigyani talkਯੋਗਦਾਨ 08:06, 7 July 2014 (UTC)

Template Breaks When Page Context Varies
Hey, so if you go to Special:ExpandTemplates and type, say,, the result is a whole bunch of errors when you also set the context title to, for example, the letter A. 173.228.125.248 (talk) 22:45, 22 August 2014 (UTC)

Float=right removes border
There is a border on float=left but not on float=right, if anyone has time to fix it  czar  01:03, 27 September 2016 (UTC)

Excess boldface
Can anybody here provide assistance with regard to this issue? Thanks in advance for any support. Best wishes--Hildeoc (talk) 21:41, 8 June 2019 (UTC)
 * I'm pretty sure I already fixed it. Please provide an example. – Jonesey95 (talk) 03:17, 9 June 2019 (UTC)
 * Yes, it's perfectly fine now! Thank you very much indeed. Best wishes--Hildeoc (talk) 12:22, 18 June 2019 (UTC)

Discussion on converting this template to Lua/module
There is currently an ongoing discussion about converting this template to Lua/module happening at Wikipedia talk:Lua‎. Editors/watchers of this template may be interested in participating in the discussion. Steel1943 (talk) 17:00, 1 July 2019 (UTC)

Lua Module
I have build upon the same template module on my native wiki ka:მოდული:კალენდარი and implemented almost all of the functionality en-wiki template had. Lua module and template are in sandbox as of now (see: Module:Sandbox/Tokoko/Calendar and Template:Sandbox/Tokoko/Calendar. The tests on this page show that most of the functionality is identical. I'm still not sure about iso weeknums and handling of wk5253 argument. Also, some of the prefix/suffix logic of the template seemed a little bizarre, so I have changed them to what seemed most logical. Any kind of input will be greatly appreciated. P.S. I saw the discussion about last-year effort to convert the template to Lua module too late, sorry about that :) --Tokoko (talk) 10:31, 15 February 2020 (UTC)

Broken on mobile
The Calendar template doesn't display correctly on a smartphone. I have created an edit request here to resolve the problem. Jdcompguy (talk) 23:23, 5 November 2020 (UTC)
 * Fixed. Jdcompguy (talk) 03:34, 6 November 2020 (UTC)

June 1976
The September 1913 fix in Calendar/month/link on needs repeating for June 1976, which breaks the >> link in May 1976. I could boldly add it but it would involve more repetitious calls to #time, even if we replaced #ifeq by #switch. I wonder if we want a simple new template which takes a #time specifier such as "August 1913 next month" and returns a link, either basic like [&#91;January 1901]] or piped like [&#91;June 1976 (month)|June 1976]]. This template would call it three times, and it might be useful elsewhere too. Ping:. Certes (talk) 15:22, 16 January 2021 (UTC)
 * I've boldly made the change, creating Calendar/month/link on/article. It seems to work everywhere but a second pair of eyes would be welcome.  As for other uses, Events by month and Events by month links/months already handle 1976.  Events by month/error check doesn't, but it doesn't need to unless  gets its own page rather than a redirect. Certes (talk) 12:51, 19 January 2021 (UTC)
 * looks good to me. Frietjes (talk) 19:06, 19 January 2021 (UTC)

Mark holidays
I'd like a parameter to supply holidays. I'd use it in Puente (holiday). Error (talk) 11:24, 5 December 2022 (UTC)


 * Which country's holidays? O&#39;Dea (talk) 14:39, 22 April 2023 (UTC)

Highlighting specific dates?
I've noticed the template doesn't seem to support this. I wonder how hard it would be? jp×g🗯️ 16:51, 13 February 2024 (UTC)


 * Okay, this is a huge labyrinth, never mind, I will not implement this myself. jp×g🗯️ 16:55, 13 February 2024 (UTC)