Template:ISOCALENDAR
From Wikipedia, the free encyclopedia
Contents |
[edit] Use
[edit] Parametre
- y = Calendar year
- m = Calendar month (1-12)
- s = Calendar day (1-31)
- cw = Week number in accordance with ISO 8601 (ISO week date)
- cdow = Weekday (1 = Monday, 7 = Sunday) in accordance with ISO 8601
[edit] Example 1
{{CURRENTWEEKDATE}}
gives 2008-W24-5 [1]
{{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}} gives:
13 June 2008 | |||||||
Wk | Mo | Tu | We | Th | Fr | Sa | Su |
(22) | 26 | 27 | 28 | 29 | 30 | 31 | 1 |
(23) | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
(24) | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
(25) | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
(26) | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
(27) | 30 | 1 | 2 | 3 | 4 | 5 | 6 |
[edit] Example 2
{{ISOWEEKDATE|2006|06|10}}
gives 2006-W23-6 [2]
{{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}} gives:
June 2006 | |||||||
Wk | Mo | Tu | We | Th | Fr | Sa | Su |
(22) | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
(23) | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
(24) | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
(25) | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
(26) | 26 | 27 | 28 | 29 | 30 | 1 | 2 |
[edit] Example 3
January 2007 | |||||||
Wk | Mo | Tu | We | Th | Fr | Sa | Su |
(1) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
(2) | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
(3) | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
(4) | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
(5) | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
[edit] Example 4
{{ISOWEEKDATE|2008|12|31}}
gives 2009-W01-3 [3]
December 2008 | |||||||
Wk | Mo | Tu | We | Th | Fr | Sa | Su |
(49) | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
(50) | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
(51) | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
(52) | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
(1) | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
(1) | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
[edit] See also
- MediaWiki:Template:Calendar
- Template:Calendar
- Template:CURRENTCALENDAR
- Template:CURRENTISOYEAR
{{CURRENTISOYEAR}}
gives 2008 [4] - Template:CURRENTISOWEEK
{{CURRENTISOWEEK}}
gives 24 [5] - Template:CURRENTISOWEEKDAY
{{CURRENTISOWEEKDAY}}
gives 5 [6] - Template:CURRENTWEEKDATE
{{CURRENTWEEKDATE}}
gives 2008-W24-5 [7]
- Template:ISOWEEKDATE -
{{ISOWEEKDATE|2010|01|03}}
gives 2009-W53-7 [8] The opposite function of {{ISOWEEKDATE2YMD}}
-
- Template:ISOYEAR -
{{ISOYEAR|2010|01|03}}
gives 2009 [9] - Template:ISOWEEK -
{{ISOWEEK|2010|01|03}}
gives 53 [10] - Template:ISOWEEKDAY -
{{ISOWEEKDAY|2010|01|03}}
gives 7 [11]
- Template:ISOYEAR -
- Template:ISOWEEKDATE2YMD -
{{ISOWEEKDATE2YMD|2009|53|7}}
gives 2010-01-03 [12] The opposite function of {{ISOWEEKDATE}}
-
- Template:ISOWEEKDATE2Y -
{{ISOWEEKDATE2Y|2009|53|7}}
gives 2010 [13] - Template:ISOWEEKDATE2M -
{{ISOWEEKDATE2M|2009|53|7}}
gives 01 [14] - Template:ISOWEEKDATE2D -
{{ISOWEEKDATE2D|2009|53|7}}
gives 03 [15]
- Template:ISOWEEKDATE2Y -