Templat:Calendar

Dari Wiki Javasatu
Revisi sejak 20 September 2023 20.49 oleh Adminjavasatu (bicara | kontrib) (←Membuat halaman berisi '<includeonly>{{#if:{{{1|}}} |{{calendar/{{{1}}} |year={{{year|{{#time:Y}}}}} |base={{{base|{{#titleparts:{{title without disambig|{{PAGENAME}}}}|2}}}}} |sub={{#titleparts:{{title without disambig|{{PAGENAME}}}}/XXX|1|3}} |zero={{{zero|{{0}}}}} |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}} |background-color:{{{title_colour|{{{colour}}}}}}; }} |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}} |background-col...')
(beda) ← Revisi sebelumnya | Revisi terkini (beda) | Revisi selanjutnya → (beda)
Loncat ke navigasi Loncat ke pencarian
[lihat] [sunting] [riwayat] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

Templat ini menampilkan kalender setahun atau satu bulan (1970-2037).

Parameters[sunting sumber]

month
To display a single month the parameter month must be defined. This parameter can be a month name or number, the current month use month=current (next and last are also accepted).
year
The parameter year sets the year of the calendar the default being the current year.
format
To start the week on Monday use either format=Mon1st or, to include iso week numbers, format=iso.

Templat:Calendar/isoMonthStartJum

show_year
To display the year use show_year=on. To show the year after the month use show_year=with month.
txt_pref_m
This adds a prefix to the month name.
txt_suff_m
This adds a suffix to the month name.
float
To float the calendar left or right use float=left or float=right.
lk
To link days, months and years use lk=on.
To link days and months use lk=dm.
To link months and years use lk=my.
To link days and years use lk=dy.
To link days only use lk=d.
To link months only use lk=m.
To link years only use lk=y.
lk_pref
This adds a prefix to all links.
lk_pref_d
This adds a prefix to day links.
lk_pref_m
This adds a prefix to month links.
lk_pref_mnext
This adds a prefix to the next month's link.
lk_pref_mprev
This adds a prefix to the previous month's link.
lk_suff
This adds a suffix to all links.
lk_suff_d
This adds a suffix to day links.
lk_suff_m
This adds a suffix to month links.
lk_suff_mnext
This adds a suffix to the next month's link.
lk_suff_mprev
This adds a suffix to the previous month's link.
prevnext
To add links to the previous and next months use prevnext=on.
title_colour
Use this to change the background colour of the title bar with name of the month, and the bottom bar (e.g. title_colour=#2e8b57).
week_colour
Use this to change the colour of the bar listing the days of the week (e.g. week_colour=#2e8b57).
colour
This is shorthand for both of the above.
EndNote
This adds text to the bottom bar.

Contoh[sunting sumber]

{{calendar|lk=on|show_year=on|float=right|month=current}} produces the calendar above. The calendars below are produced by {{calendar}} and {{calendar|prevnext=true|format=iso|zero=0|row=3}}, respectively.

2024
Januari
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31  
 
Februari
Mi Sn Sl Ra Ka Ju Sa
01 02 03
04 05 06 07 08 09 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29
 
Maret
Mi Sn Sl Ra Ka Ju Sa
01 02
03 04 05 06 07 08 09
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31  
April
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30  
 
Mei
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 
Juni
Mi Sn Sl Ra Ka Ju Sa
01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30  
Juli
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31  
 
Agustus
Mi Sn Sl Ra Ka Ju Sa
01 02 03
04 05 06 07 08 09 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 
September
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30  
 
Oktober
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31  
 
November
Mi Sn Sl Ra Ka Ju Sa
01 02
03 04 05 06 07 08 09
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
 
Desember
Mi Sn Sl Ra Ka Ju Sa
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31  
 
2024
Templat:Calendar/isoMonthStartSenTemplat:Calendar/isoMonthStartKamTemplat:Calendar/isoMonthStartJumTemplat:Calendar/isoMonthStartSen
Templat:Calendar/isoMonthStartRabTemplat:Calendar/isoMonthStartSabTemplat:Calendar/isoMonthStartSenTemplat:Calendar/isoMonthStartKam
Templat:Calendar/isoMonthStartMinTemplat:Calendar/isoMonthStartSelTemplat:Calendar/isoMonthStartJumTemplat:Calendar/isoMonthStartMin

pt:Predefinição:Calendário