Templat:ISOCALENDAR

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Loncat ke navigasi Loncat ke pencarian
[lihat] [sunting] [versi terdahulu] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

Parameters[sunting sumber]

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.

  • m and cdow may be fully spelt out, abbreviated or numeric.
  • The numbering for cw and cdow is in accordance with ISO 8601 (ISO week date: Monday → 1, Tuesday → 2, ... Sunday → 7)

Output[sunting sumber]

Title[sunting sumber]

The calendar title is determined by 1 (the first unnamed parameter), the default is the month and year of the calendar displayed.

Month[sunting sumber]

The month of the calendar displayed is determined by m.

  • If m is specified, then the year can be specified with y, the default is the current year.
  • If m is not specified but 1 is a valid time the month and/or year is set to match the title, the default is the current month and/or year.

Highlighting[sunting sumber]

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.
  • cw alone will highlight the whole week.
  • cdow alone will highlight the given weeek day for the whole month.

Examples[sunting sumber]

Displaying the current month[sunting sumber]

To display the current month use {{ISOCALENDAR}}.

Juni 2020
Mgu Sn Sl Rb Km Jm Sb Mg
(23) 1 2 3 4 5 6 7
(24) 8 9 10 11 12 13 14
(25) 15 16 17 18 19 20 21
(26) 22 23 24 25 26 27 28
(27) 29 30 1 2 3 4 5

Displaying a given month of the current year[sunting sumber]

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}}.

August
Mgu Sn Sl Rb Km Jm Sb Mg
(31) 27 28 29 30 31 1 2
(32) 3 4 5 6 7 8 9
(33) 10 11 12 13 14 15 16
(34) 17 18 19 20 21 22 23
(35) 24 25 26 27 28 29 30
(36) 31 1 2 3 4 5 6
September 2020
Mgu Sn Sl Rb Km Jm Sb Mg
(36) 31 1 2 3 4 5 6
(37) 7 8 9 10 11 12 13
(38) 14 15 16 17 18 19 20
(39) 21 22 23 24 25 26 27
(40) 28 29 30 1 2 3 4
This November
Mgu Sn Sl Rb Km Jm Sb Mg
(44) 26 27 28 29 30 31 1
(45) 2 3 4 5 6 7 8
(46) 9 10 11 12 13 14 15
(47) 16 17 18 19 20 21 22
(48) 23 24 25 26 27 28 29
(49) 30 1 2 3 4 5 6

Displaying a given month of a given year[sunting sumber]

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}}.

May 2006
Mgu Sn Sl Rb Km Jm Sb Mg
(18) 1 2 3 4 5 6 7
(19) 8 9 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 1 2 3 4
Juni 2006
Mgu Sn Sl Rb Km Jm Sb Mg
(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
Quintilis MMVI
Mgu Sn Sl Rb Km Jm Sb Mg
(18) 1 2 3 4 5 6 7
(19) 8 9 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 1 2 3 4

Highlight a week, a day of the week or a day[sunting sumber]

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}}


January 2021
Mgu Sn Sl Rb Km Jm Sb Mg
(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
February 2021
Mgu Sn Sl Rb Km Jm Sb Mg
(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
March 2021
Mgu Sn Sl Rb Km Jm Sb Mg
(9) 1 2 3 4 5 6 7
(10) 8 9 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 1 2 3 4

Adjusting the width[sunting sumber]

{{ISOCALENDAR|s=14}} gives

Juni 2020
Mgu Sn Sl Rb Km Jm Sb Mg
(23) 1 2 3 4 5 6 7
(24) 8 9 10 11 12 13 14
(25) 15 16 17 18 19 20 21
(26) 22 23 24 25 26 27 28
(27) 29 30 1 2 3 4 5