Template talk:Calendar\Ex1
Add topicAppearance
Latest comment: 17 years ago by Nsaa
Ex. ISO year tree days into next gregorian year
[edit]2009-12 | |||||||
Mo | Tu | We | Th | Fr | Sa | Su | |
(49) | 30 | 1 | 2 | 3 | 4 | 5 | 6 |
(50) | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
(51) | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
(52) | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
(53) | 28 | 29 | 30 | 31 | 1 | 2 | 3 |
2010-01 | |||||||
Mo | Tu | We | Th | Fr | Sa | Su | |
(53) | 28 | 29 | 30 | 31 | 1 | 2 | 3 |
(1) | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
(2) | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
(3) | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
(4) | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
"{{Weekdate|2009|12|31}}"
gives "2009-W53-4" [1]"{{Weekdate|2010|1|1}}"
gives "2009-W53-5" [2]"{{Weekdate|2010|1|2}}"
gives "2009-W53-6" [3]"{{Weekdate|2010|1|3}}"
gives "2009-W53-7" [4] –"{{ISOWeekdate2ymd|2009|53|7}}"
gives "2010-01-03 " [5]"{{Weekdate|2010|1|4}}"
gives "2010-W01-1" [6] –"{{ISOWeekdate2ymd|2010|01|1}}"
gives "2010-01-04 " [7]
Someting is not correct here.
- In January, the weeknumber shows 0 instead of 52/53 if the week from previous year appear (as in 2010-01). Solution. Replace {{Week}} with {{Week2}} (w:ISO 8601 compilant).
- Replaced Week with Week2, so it should now shows tyhe correct Weeks (ex. 52/53 instead of 0) Nsaa 13:20, 27 November 2006 (UTC)
- In december (2009) the last week should not appear.
- In January the prior years week (53) uses the current year when calculated in {{Calendar/1}}. Here some code like If January and Week>51 then use year-1, and if December and Week < 2 then year+1. I'm not sure how to implement this, but I think this will solve the January/December problem. Nsaa 13:25, 27 November 2006 (UTC)
- Replaced year with Isoyear. Solved this problem. Nsaa 01:37, 6 December 2006 (UTC)
Solved by using Week2 function. Nsaa 22:15, 13 February 2007 (UTC)