Templat:Calendar/doc: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
(←Membuat halaman berisi '{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> Templat ini menampilkan kalender setahun atau satu bulan (1970-2037). == Parameters == ;month :To display a single month the parameter <code>month</code> must be defined. This parameter can be a month name or number, the current month use <code>month=current</code> (<code>next</code> and <code>last</code> are also accepted). ;year :The parameter <code>year</code> sets...') |
(Tidak ada perbedaan)
|
Revisi terkini sejak 20 September 2023 20.50
| Ini adalah sebuah subhalaman dokumentasi untuk Templat:Calendar. Templat ini berisi informasi penggunaan, kategori dan konten lainnya yang bukan merupakan bagian dari templat halaman. |
Templat ini menampilkan kalender setahun atau satu bulan (1970-2037).
Parameters[sunting sumber]
- month
- To display a single month the parameter
monthmust be defined. This parameter can be a month name or number, the current month usemonth=current(nextandlastare also accepted).
- year
- The parameter
yearsets the year of the calendar the default being the current year.
- format
- To start the week on Monday use either
format=Mon1stor, to include iso week numbers,format=iso.
Templat:Calendar/isoMonthStartSen
- show_year
- To display the year use
show_year=on. To show the year after the month useshow_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=leftorfloat=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.
| 2025 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||