(Translated by https://www.hiragana.jp/)
Template talk:Calendar - Wikipedia Jump to content

Template talk:Calendar

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Starting weeks with Monday

[edit]

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)[reply]

There’s been some discussion about it at Talk:Common year starting on Monday. — Christoph Päper 22:02, 1 June 2016 (UTC)[reply]

Replacing CalendarCustom

[edit]

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 absorbed into this template which now gives you the option of full-year or single-month calendars. Jimp 08:59, 24 September 2013 (UTC)[reply]

Replacing January calendar, February calendar, etc.

[edit]

This template can replace these templates.[which?] All the functions of these old templates are now possible with this one with the following exception. These templates have the parameters curr_month, prev_month and next_month 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)[reply]

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)[reply]
Right, here's a reason for not using Roman numerals for years (even as an option). Jimp 09:37, 14 October 2013 (UTC)[reply]

Replacing Month3 and Year3

[edit]

This template can also replace Month3 and Year3 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)[reply]

Faulty lk parameter?

[edit]

lk=m, lk=dm, and lk=my fail to make the month names linked. They do work if a (non-empty) lk_pref_m or lk_suff_m is passed, however. The same is true for the day linking values to the lk parameter (i.e. they only work if a prefix or suffix is supplied). Jimp, could you take a look? --Waldir talk 15:31, 21 June 2014 (UTC)[reply]

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)[reply]

Help

[edit]

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 . --Vigyanitalkਯੋਗਦਾਨ 08:06, 7 July 2014 (UTC)[reply]

Template Breaks When Page Context Varies

[edit]

Hey, so if you go to Special:ExpandTemplates and type, say, {{calendar|month=current}}, 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)[reply]

Float=right removes border

[edit]

There is a border on float=left but not on float=right, if anyone has time to fix it I am no longer watching this page—ping if you'd like a response czar 01:03, 27 September 2016 (UTC)[reply]

Excess boldface

[edit]

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)[reply]

I'm pretty sure I already fixed it. Please provide an example. – Jonesey95 (talk) 03:17, 9 June 2019 (UTC)[reply]
@Jonesey95: Yes, it's perfectly fine now! Thank you very much indeed. Best wishes--Hildeoc (talk) 12:22, 18 June 2019 (UTC)[reply]

Discussion on converting this template to Lua/module

[edit]

There is currently an ongoing discussion about converting this template to Lua/module happening at Wikipedia talk:Lua‎#Template:Calendar - Request to Lua-ize. Editors/watchers of this template may be interested in participating in the discussion. Steel1943 (talk) 17:00, 1 July 2019 (UTC)[reply]

Lua Module

[edit]

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)[reply]

Broken on mobile

[edit]

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)[reply]

Fixed. Jdcompguy (talk) 03:34, 6 November 2020 (UTC)[reply]

June 1976

[edit]

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 [[January 1901]] or piped like [[June 1976 (month)|June 1976]]. This template would call it three times, and it might be useful elsewhere too. Ping: Frietjes. Certes (talk) 15:22, 16 January 2021 (UTC)[reply]

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 June 1976 (month) gets its own page rather than a redirect. Certes (talk) 12:51, 19 January 2021 (UTC)[reply]
looks good to me. Frietjes (talk) 19:06, 19 January 2021 (UTC)[reply]

Mark holidays

[edit]

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

Which country's holidays? O'Dea (talk) 14:39, 22 April 2023 (UTC)[reply]

Highlighting specific dates?

[edit]

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)[reply]

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

Individual days

[edit]

How would I link individual days? For example, I would like to link 24 September 1992 to

September
Su Mo Tu We Th Fr Sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30  
1992

🐦DrWho42👻 01:39, 1 October 2024 (UTC)[reply]

Do you mean like this?
September
Su Mo Tu We Th Fr Sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30  
1992
The problem here is, that the day links cannot be switched from "September 24" to "24 September", apparently. — Christoph Päper 12:07, 1 October 2024 (UTC)[reply]
Thank you! I'll make the necessary edits.-🐦DrWho42👻 00:32, 3 October 2024 (UTC)[reply]