Templat:Calendar/doc: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
k Robot: Perubahan kosmetika |
|||
Baris 2: | Baris 2: | ||
<!-- Categories and interwikis go at the bottom of this page. --> |
<!-- Categories and interwikis go at the bottom of this page. --> |
||
Templat ini menampilkan kalender setahun atau satu bulan (1970-2037). |
Templat ini menampilkan kalender setahun atau satu bulan (1970-2037). |
||
==Parameters== |
== Parameters == |
||
;month |
;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). |
: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). |
||
Baris 81: | Baris 81: | ||
:This adds text to the bottom bar. |
:This adds text to the bottom bar. |
||
==Contoh== |
== Contoh == |
||
<code><nowiki>{{calendar|lk=on|show_year=on|float=right|month=current}}</nowiki></code> produces the calendar above and <code><nowiki>{{calendar}}</nowiki></code> produces the calendar below. |
<code><nowiki>{{calendar|lk=on|show_year=on|float=right|month=current}}</nowiki></code> produces the calendar above and <code><nowiki>{{calendar}}</nowiki></code> produces the calendar below. |
||
Baris 88: | Baris 88: | ||
<includeonly> |
<includeonly> |
||
<!-- Categories and interwikis go here: --> |
<!-- Categories and interwikis go here: --> |
||
[[ |
[[Kategori:Calendar templates|{{PAGENAME}}]] |
||
[[ |
[[Kategori:Broken templates]] |
||
[[pt:Predefinição:Calendário]] |
[[pt:Predefinição:Calendário]] |
Revisi per 13 Mei 2016 12.26
Templat ini menampilkan kalender setahun atau satu bulan (1970-2037).
Parameters
- month
- To display a single month the parameter
month
must be defined. This parameter can be a month name or number, the current month usemonth=current
(next
andlast
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
.
Oktober | |||||||
---|---|---|---|---|---|---|---|
#Mg. | Sn | Sl | Ra | Ka | Ju | Sa | Mi |
40 | 1 | 2 | 3 | 4 | 5 | 6 | |
41 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
42 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
43 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
44 | 28 | 29 | 30 | 31 | |||
2024 |
- 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=left
orfloat=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
{{calendar|lk=on|show_year=on|float=right|month=current}}
produces the calendar above and {{calendar}}
produces the calendar below.
2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|