Template talk:Month3

From Wikipedia, the free encyclopedia

This is the discussion/talk page for: Template:Month3

Contents

[edit] Danger of overlinking as 380 spam-links

06-Jan-2008: The monthly-calendar Template:Month3 propagates wikilinks to about 35 articles, for all weekdays, days, and weeks. When used 12 times in an article to cover 12 months, the effect overlinks to 380 wikilinks (or more), rather than linking by one wikilink to a full-calendar article (propagating only the 1 wikilink). For year-articles "1950-2008" the template was multi-linked 12 times per article, generating over 22,000 wikilinks, rather than the original 58 links to just single full-calendar articles. Although the usage has been reduced, Template:Month3 was becoming a major part of the "Wikipedia megalink crisis" which overlinks words such as "city" or "county" or "km" millions of times into the page-link database(s) across Wikipedia. -Wikid77 (talk) 23:42, 6 January 2008 (UTC)

[edit] Set Sunday default hue as blue per WP:NOR

07-Jan-2008: I have changed Template:Month3 to set the Sunday-dates default color as "blue"; had been "red" which violated WP:NOR because Wikipedia uses red-links (to indicate broken links), and the default had used red-colored words in "original" (OR) manner. I also changed the 1st example to use "DarkGray" since the example had used "blue" which is now the default color for Sunday-dates. -Wikid77 (talk) 01:05, 7 January 2008 (UTC)

[edit] Set Week-number default as hidden per WP:NOR

07-Jan-2008: I have changed Template:Month3 to set the default option for week-number display as hidden. The monthy-calendars are used to portray "standard" Gregorian Calendar years, and the week-number column is an unusual, peculiar insertion in a Gregorian Calendar, resulting in a default display that violated "WP:NOR" by showing a standard full-year calendar in a non-standard, original (OR) format not used by typical reference sources. -Wikid77 (talk) 01:19, 7 January 2008 (UTC)

[edit] Other issues

[ Discuss other, unnamed issues here. -Wikid77 ]

[edit] Smarter template

Would it be possible to adjust this template (or create a new one) so that you wouldn't need to add the parameters for month number, leap year, etc. using something like the #time: parser? -- Mufka (u) (t) (c) 04:04, 22 February 2008 (UTC)

The month number cannot be avoided, if it isn't given, the template has no way to know which month should be displayed. Theoretically it should be possible to replace the other two parameters by the year, but the template is not intended to work for a particular year - it is also used in pages like Common year starting on Sunday.
The Magic words {{CURRENTYEAR}} and {{CURRENTMONTH}} can be used as default values, so this template can be used to display the current month (06 2008). Likewise, this template can be modified so that it automatically updates something like Template:FebruarySelAnniv without the need for someone to have to manually do it every new years day. Zzyzx11 (Talk) 03:43, 27 February 2008 (UTC)
Is this template similar enough to Template:CalendarSingle that their functions could be combined? What are the real differences? The other template seems more intelligent to an amateur like me. -- Mufka (u) (t) (c) 04:00, 27 February 2008 (UTC)
I could probably find a way to merge the weekcolour, satcolour, suncolour, and style parameters. The tricky thing will be how to merge the initial day parameter from here to there. I might have to think about that over the weekend, and have this as a temporary fork for now. Zzyzx11 (Talk) 16:10, 27 February 2008 (UTC)

[edit] Leap year

I suggest removing the third parameter and use Template:IsLeapYear somewhere here. I thought the whole point of this template was to automate everything with #if statements instead of using Template:FebruaryCalendar2008Source and other separate templates. Otherwise, everybody has to manually change those pages that use this. Cheers. Zzyzx11 (Talk) 16:02, 26 February 2008 (UTC)

I agree, but that works only if the year is given HandigeHarry (talk) 16:05, 26 February 2008 (UTC)
I don't know if it helps here, but I've been working on replacing the calendar templates for the date articles. See my sample at User:Mufka/JanuaryCalendar. It will replace Template:JanuaryCalendar. It should be completely self-maintaining. I could use some expert review to make sure that it really works. I'd still like to change it so that Sunday is the first day (I've already rewritten those templates too but I don't know if I can replace them or if I need to make new ones). Mine works for leap years too. -- Mufka (u) (t) (c) 16:22, 26 February 2008 (UTC)
The template is not intended to show the current month but any month. It won't help to query the current month.HandigeHarry (talk) 16:35, 26 February 2008 (UTC)
You can tweak mine to show any month. -- Mufka (u) (t) (c) 16:44, 26 February 2008 (UTC)
If this is going to be the high visible calendar template (and be used on all of the date pages, WP:TFA subpages, WP:SA subpages, WP:POTD subpages, etc.), it should be able to compute both the intial day and the leap year by itself instead asking users to compute it beforehand. Ideally, the user should just provide a year and a month (with the Magic words {{CURRENTYEAR}} and {{CURRENTMONTH}} as default values. See Template:CalendarSingle as an example. Cheers. Zzyzx11 (Talk) 21:30, 26 February 2008 (UTC)
My templates are based on Template:CalendarSingle and I feel that they would be perfect for the date articles. Hopefully we can keep the date articles separate from whatever is changing. Currently the date articles have the current year's calendar for the respective month. My templates reduce template usage from 36 to 19 (one for each month and 7 for the days of the week). I think that can be cut down to 8 very easily (one for all months and 7 for the days of the week). -- Mufka (u) (t) (c) 21:40, 26 February 2008 (UTC)
Template:Year3 also suffers the same problem, not automatically calculating what day January 1 lies and whether or not it is a leap year. But then of course, it is using this Month3 template too. Zzyzx11 (Talk) 03:28, 27 February 2008 (UTC)
Let me clarify: Template:Year3 may be useful on something like Leap year starting on Wednesday when you do need to calculate the initial day in advance. But a user should not have to do that for Wikipedia:Today's featured article/2008. Zzyzx11 (Talk) 03:59, 27 February 2008 (UTC)