Template talk:Calendar/Archive 1

Displaying the current month
Q. Is there a way to add some kind of operator or expression to this template so that on, for example, a user page, one might place a text resulting in display of a the current month's calender? In other words, one would be able to have a calendar which would automatically update according to the time zone I select? Thanks in advance for any help on this. Calicocat 05:03, 25 January 2006 (UTC)

A. See next section. --Uncle Ed 01:18, 13 March 2006 (UTC)

Day template
See commons:Template:Small calendar.--Piotr Konieczny aka Prokonsul Piotrus Talk 20:13, 14 April 2006 (UTC)

Question about templates
Is there a legitimate reason that JulyCalendar links to JulyCalendar2006 (with a current year insert) links to JulyCalendar2006 links to JulyCalendar2006Source which actually contains the manual imput of the Calendar? Is there a legitimate reason for the 4 layers of building or is that just legacy format based on the history of wikipedia? I'm building a new wiki and I'm curious if there is a reason that makes ^ this the ideal format for calendars, or why wouldn't one just put JulyCalenderxxxxSource (with CURRENTYEAR in place of the xxxx) in the page that I'd want the calendar? Thanks TheHYPO 20:11, 4 August 2006 (UTC)

New codbase
Have made a new system, using parserfunctions instead of static template inclusing as it's doing now. So to generate the calendar for year 1979 (can sadly only handle years between 1972 and 2037 (see Year 2038 problem)), type:, result:

→ Aza Toth 00:55, 8 November 2006 (UTC)

Change supporting template
Would there be any objection to changing the supporting templates Template:Calendar/MonthStartSun etc. to list Sunday as the first day and changing the blue to a lighter shade? -- Mufka (u) (t) (c) 03:58, 27 February 2008 (UTC)

Links links links
Currently the template links the year, each day and each month. Do we need all these links? Probably not. But what we certainly don't need is the months to be linked thrice. At the top of each month there is "<<", the month's name and ">>". The "<<" and ">>" are of the one-month calandar that this is built from. They are of dubious use there: they don't get you the next and previous month's calandar but send you to the month's article. These Easter eggs are of no use here. I suggest we turn them off. J IM ptalk·cont 04:37, 30 May 2012 (UTC)

The subtemplates Calendar/Sun1stMonthStartMon etc. have been producing "<<" and ">>" with no link if not given parameters  and. They may make little sense as links to the previous and next month's article; they make no sense whatsoever as unlinked text. Let the subtemplates output nothing if the parameters are omitted. This'll make it easier to get them off this template. J IM ptalk·cont 05:39, 30 May 2012 (UTC)

Layout
The layout of this calendar is pretty unique and pretty different from everything we've had so far. I've gone forward and designed a version that looks closer to what I've already done on Template:Table Suffixes and Template:Table Greekletters - see MediaWiki:JanuaryCalendar/Temp for this suggestion of mine. Please let me know what you think. &mdash; Timwi 21:10, 25 Feb 2004 (UTC)


 * Your layout, Timwi, seems a little closer to other tables we have dotted around in terms of being borderless and having a familar colour. I'd advocate changing to it - and the beauty of the msg: system is that it is easy to change everywhere! Pete/Pcb21 (talk) 09:08, 26 Feb 2004 (UTC)


 * Neat! I like the /Temp table. Not too thrilled about the color though. I was thinking about having different colors for each season, so we can deal with that later. And yes, the MediaWiki namespace is really cool - changing 12 pages will update nearly 400 articles! --mav 12:40, 26 Feb 2004 (UTC)


 * Done. Personally, I rather prefer to have consistent colours all the way through, but I can also see the aesthetic merit of having some sort of continual gradient of colours that changes from blue (winter) over green (spring) and red (summer) via yellow (autumn) back to blue. Might look cool, if the colours are well-chosen. -- Timwi 14:48, 26 Feb 2004 (UTC)

Shouldn't the January calendar link to December and February, etc? Morwen 10:13, Feb 28, 2004 (UTC)


 * I tried that and it was ugly. Just follow the January link to that article. Navigate to different months there. Keep it simple. --mav

Rewrite this template?
Could this template be rewritten to be a little more self-maintaining? The way that the template is used now, it is dependent on other templates that have to be created each year. The way I envision it is to work as JanuaryCalendar by default for all the date pages, which would just show a calendar of the current year. For the few pages that list older calendars something like could be used. If the template could be rewritten that way, no one would have to create the new templates each year (half of the source templates are already created until 2010 - half because it requires two for each month) and 120 existing templates (more actually) could be deleted. -- Mufka (u) (t) (c) 01:42, 2 January 2008 (UTC)


 * I've rewritten these templates so that they do not need to be manually (or bot) updated each year. The current versions depend on Template:JanuaryCalendar2008 and Template:JanuaryCalendar2008Source and these need to be created each year.  The version that I've written use only the Template:Calendar/MonthStartTue set of templates (one for each day of the week).  The new version calculates what day the first of the month is and then uses that to create the calendar.  It should be maintenance free.  I've posted the January version at User:Mufka/JanuaryCalendar.  I'd like to get some input on it before I replace the templates.  Another great feature of the way I did it is that it will only take 12 edits to the   templates to make the change.  I'm also thinking that with just a little more work, I could turn the 12 templates into one. -- Mufka (u) (t) (c) 05:36, 26 February 2008 (UTC)


 * I just remembered that the MonthStartTue templates use Monday as the first day of the week. That can be fixed very simply with a new version of those templates if the existing ones cannot be changed (I already have new versions written). -- Mufka (u) (t) (c) 05:50, 26 February 2008 (UTC)

Template updated
I've updated the template to a self-maintaining version. The only difference is that it is not right aligned but all of the articles that use it have style="float:right;" set and we shouldn't be depending on the template for alignment. You should be able to put it wherever you want it. -- Mufka (u) (t) (c) 17:57, 6 March 2008 (UTC)

Template updated again
I have modified the template again so it can replace Template:JanuaryCalendar2008 and Template:JanuaryCalendar2008Source and those similar ones that need to be created every year. My original intent was just to modify Template:CalendarCustom, but it became too esoteric and complex for me to code at this time. Maybe that can be done in the future. Cheers. Zzyzx11 (Talk) 04:45, 26 January 2009 (UTC)