Template:ISOCALENDAR
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第40週 | 29 | 30 | 01 | 02 | 03 | 04 | 05
|
| 第41週 | 06 | 07 | 08 | 09 | 10 | 11 | 12
|
| 第42週 | 13 | 14 | 15 | 16 | 17 | 18 | 19
|
| 第43週 | 20 | 21 | 22 | 23 | 24 | 25 | 26
|
| 第44週 | 27 | 28 | 29 | 30 | 31 | 01 | 02 |
Parameters
[编辑]| 1 | title |
|---|---|
| y | calendar year |
| m | calendar month |
| s | width in percent of each column of day (default is 10) |
| cw | week number to highlight |
| cdow | weekday to highlight |
All parameters are optional.
mandcdowmay be fully spelt out, abbreviated or numeric.- The numbering for
cwandcdowis in accordance with ISO 8601 (ISO week date: Monday → 1, Tuesday → 2, ... Sunday → 7)
Output
[编辑]Title
[编辑]The calendar title is determined by 1 (the first unnamed parameter), the default is the month and year of the calendar displayed.
Month
[编辑]The month of the calendar displayed is determined by m.
- If
mis specified, then the year can be specified withy, the default is the current year. - If
mis not specified but1is a valid time the month and/or year is set to match the title, the default is the current month and/or year.
Highlighting
[编辑]By default the current day is highlighted. To highlight (an)other day(s) use cw and cdow. cw gives the week and cdow the day of the week to be highlighted.
- Together they determine a specific day to be highlighted.
cwalone will highlight the whole week.cdowalone will highlight the given weeek day for the whole month.
Examples
[编辑]Displaying the current month
[编辑]To display the current month use {{ISOCALENDAR}}.
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第40週 | 29 | 30 | 01 | 02 | 03 | 04 | 05
|
| 第41週 | 06 | 07 | 08 | 09 | 10 | 11 | 12
|
| 第42週 | 13 | 14 | 15 | 16 | 17 | 18 | 19
|
| 第43週 | 20 | 21 | 22 | 23 | 24 | 25 | 26
|
| 第44週 | 27 | 28 | 29 | 30 | 31 | 01 | 02 |
Displaying a given month of the current year
[编辑]A given month of this year can be specified with 1 like this {{ISOCALENDAR|August}}. Alternatively m can be used e.g. {{ISOCALENDAR|m=Sep}}. Perhaps you want a different title e.g. {{ISOCALENDAR|This November|m=11|y=2006}}.
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第31週 | 28 | 29 | 30 | 31 | 01 | 02 | 03
|
| 第32週 | 04 | 05 | 06 | 07 | 08 | 09 | 10
|
| 第33週 | 11 | 12 | 13 | 14 | 15 | 16 | 17
|
| 第34週 | 18 | 19 | 20 | 21 | 22 | 23 | 24
|
| 第35週 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第36週 | 01 | 02 | 03 | 04 | 05 | 06 | 07
|
| 第37週 | 08 | 09 | 10 | 11 | 12 | 13 | 14
|
| 第38週 | 15 | 16 | 17 | 18 | 19 | 20 | 21
|
| 第39週 | 22 | 23 | 24 | 25 | 26 | 27 | 28
|
| 第40週 | 29 | 30 | 01 | 02 | 03 | 04 | 05 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第44週 | 27 | 28 | 29 | 30 | 31 | 01 | 02
|
| 第45週 | 03 | 04 | 05 | 06 | 07 | 08 | 09
|
| 第46週 | 10 | 11 | 12 | 13 | 14 | 15 | 16
|
| 第47週 | 17 | 18 | 19 | 20 | 21 | 22 | 23
|
| 第48週 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Displaying a given month of a given year
[编辑]A given month and year can be specified with 1 like this {{ISOCALENDAR|May 2006}}. Alternatively m and y can be used e.g. {{ISOCALENDAR|m=June|y=2006}}. Perhaps you want a different title e.g. {{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}.
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第18週 | 01 | 02 | 03 | 04 | 05 | 06 | 07
|
| 第19週 | 08 | 09 | 10 | 11 | 12 | 13 | 14
|
| 第20週 | 15 | 16 | 17 | 18 | 19 | 20 | 21
|
| 第21週 | 22 | 23 | 24 | 25 | 26 | 27 | 28
|
| 第22週 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第22週 | 29 | 30 | 31 | 01 | 02 | 03 | 04
|
| 第23週 | 05 | 06 | 07 | 08 | 09 | 10 | 11
|
| 第24週 | 12 | 13 | 14 | 15 | 16 | 17 | 18
|
| 第25週 | 19 | 20 | 21 | 22 | 23 | 24 | 25
|
| 第26週 | 26 | 27 | 28 | 29 | 30 | 01 | 02 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第18週 | 01 | 02 | 03 | 04 | 05 | 06 | 07
|
| 第19週 | 08 | 09 | 10 | 11 | 12 | 13 | 14
|
| 第20週 | 15 | 16 | 17 | 18 | 19 | 20 | 21
|
| 第21週 | 22 | 23 | 24 | 25 | 26 | 27 | 28
|
| 第22週 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
Highlight a week, a day of the week or a day
[编辑]You can highlight Saturday of week 3 in January 2021 using {{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}. You can highlight all of week 6 in February 2021 using {{ISOCALENDAR|February 2021|cw=23}} You can highlight all Thursdays of March 2021 using{{ISOCALENDAR|March 2021|cdow=4}}
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第53週 | 28 | 29 | 30 | 31 | 01 | 02 | 03
|
| 第1週 | 04 | 05 | 06 | 07 | 08 | 09 | 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 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第5週 | 01 | 02 | 03 | 04 | 05 | 06 | 07
|
| 第6週 | 08 | 09 | 10 | 11 | 12 | 13 | 14
|
| 第7週 | 15 | 16 | 17 | 18 | 19 | 20 | 21
|
| 第8週 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第9週 | 01 | 02 | 03 | 04 | 05 | 06 | 07
|
| 第10週 | 08 | 09 | 10 | 11 | 12 | 13 | 14
|
| 第11週 | 15 | 16 | 17 | 18 | 19 | 20 | 21
|
| 第12週 | 22 | 23 | 24 | 25 | 26 | 27 | 28
|
| 第13週 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
Adjusting the width
[编辑]{{ISOCALENDAR|s=14}} gives
| 週數 | 週一 | 週二 | 週三 | 週四 | 週五 | 週六 | 週日 |
|---|---|---|---|---|---|---|---|
|
| |||||||
| 第40週 | 29 | 30 | 01 | 02 | 03 | 04 | 05
|
| 第41週 | 06 | 07 | 08 | 09 | 10 | 11 | 12
|
| 第42週 | 13 | 14 | 15 | 16 | 17 | 18 | 19
|
| 第43週 | 20 | 21 | 22 | 23 | 24 | 25 | 26
|
| 第44週 | 27 | 28 | 29 | 30 | 31 | 01 | 02 |
Sub-templates
[编辑]The main Template:ISOCALENDAR calls