Difference between revisions of "Template talk:CalendarSingle"
From FollowTheScore
| Line 10: | Line 10: | ||
-- [[User:Eiland|Eiland]] 01:19, 26 August 2007 (CEST) | -- [[User:Eiland|Eiland]] 01:19, 26 August 2007 (CEST) | ||
| + | |||
| + | ==Date bug== | ||
| + | |||
| + | If you look at the calendar, you will see that this month (December 2007) starts on a Friday. This is not correct, it should start on a saturday. You can correct this by changing | ||
| + | <nowiki>{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}</nowiki> | ||
| + | to | ||
| + | {{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-'''02''' +1 second}} | ||
| + | . But I really don't think this is the best way to do it. I have it changed this way locally, but I'd really like to see a proper solution. | ||
Revision as of 03:25, 18 December 2007
hey
I've made a preload version of the calendar which directs to Template:Monthly_calendar [1], and if the month calendar doesnt exist yet, creates it. Now to find a few to pass the month-number... Maybe is possible by extracting it from the {{PAGENAME}}.
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
|cur_month={{#time:F|{{{year}}}-{{{month}}}-03}}
|prev_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|action=edit&preload=Template:Monthly_calendar}} <<]}}
|next_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|>>]]|
[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|action=edit&preload=Template:Monthly_calendar}} >>]}}
-- Eiland 01:19, 26 August 2007 (CEST)
Date bug
If you look at the calendar, you will see that this month (December 2007) starts on a Friday. This is not correct, it should start on a saturday. You can correct this by changing
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
to
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-02 +1 second}}
. But I really don't think this is the best way to do it. I have it changed this way locally, but I'd really like to see a proper solution.