Template talk:Calendar\Ex3
Add topicAppearance
Latest comment: 13 years ago by Quest for Truth
February can only contain 4 weeks
[edit]Since february can contain only four weeks, a if test must be build for the fifth row in the calendar template
"{{Weekdate|2010|03|01}}"
gives "2010-W09-1" [1]
February 2010 | |||||||
Mo | Tu | We | Th | Fr | Sa | Su | |
(5) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
(6) | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
(7) | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
(8) | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
- I might be misunderstanding, but february could also contain five perfectly legal weeks, not only four as you write. -- Atluxity 14:34, 1 January 2008 (UTC)
February 2000 | |||||||
Mo | Tu | We | Th | Fr | Sa | Su | |
(5) | 31 | 1 | 2 | 3 | 4 | 5 | 6 |
(6) | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
(7) | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
(8) | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
(9) | 28 | 29 | 1 | 2 | 3 | 4 | 5 |
- What Nsaa actually mean is that there is a possibility that February contains only four weeks, and the template was unable to handle such case. I have fixed it by adding a if test to the 5th row which is similar to the 6th row. --Quest for Truth 23:04, 21 January 2011 (UTC)