This template is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template displays either a yearly or monthly calendar (from 1970–2037). If you need a feature that isn't on this template, consider {{ISOCALENDAR}}, or maybe Module:Calendar widget.
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
sets the year of the calendar the default being the current year.format=Mon1st
or, to include ISO week numbers, format=iso
. The keywords are case-sensitive.November | |||||||
---|---|---|---|---|---|---|---|
Wk | Mo | Tu | We | Th | Fr | Sa | Su |
44 | 1 | 2 | 3 | ||||
45 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
46 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
47 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
48 | 25 | 26 | 27 | 28 | 29 | 30 | |
2024 |
show_year=on
. To show the year after the month use show_year=with month
.float=left
or float=right
.lk=on
.lk=dm
.lk=my
.lk=dy
.lk=d
.lk=m
.lk=y
.prevnext=on
.title_colour=#2e8b57
).week_colour=#2e8b57
).format=iso
(e.g. wknum_colour=#2e8b57
).wk5253=on
to start the year with week 52/53, when using format=iso
with a year calendar. The only use case for this, is when the year is unknown and it starts with a Saturday. See Common year starting on Saturday as an example.TemplateData for Calendar
Display a year or month calendar
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | year | the ordinal year number of the calendar
| Number | suggested |
Month | month | whether to display a single month instead of a whole year, and which one
| String | suggested |
Show year | show_year | whether to display the year number, and where
| Boolean | optional |
Title text | title | text in the top bar | Content | optional |
End note | EndNote | text in the bottom bar | Content | optional |
Week format | format | The string to be trimmed and counted
| String | optional |
Months per row | col | Display this many months per row (1, 3, 4 or 6 rows)
| Number | optional |
Months per column | row | Display this many months per column (3 or 4 cols). If set, overrides ‘col’ parameter.
| Number | optional |
Float side | float | Horizontally align the calendar
| String | optional |
Serial navigation | prevnext | Add links to the previous and next months
| Boolean | optional |
Background color | colour | Default for Title and Week background
| String | optional |
Title background | title_colour | change the background colour of the title bar with name of the month, and the bottom bar
| String | optional |
Week background | week_colour | change the colour of the bar listing the days of the week
| String | optional |
ISO week numbers background | wknum_colour | change the colour of the bar listing the ISO week numbers
| String | optional |
Fixed starting week workaround | wk5253 | start the year with week 52/53, when the first day is a Saturday. | Boolean | optional |
Month name prefix | txt_pref_m | Text to add before month names | Line | optional |
Month name suffix | txt_suff_m | Text to add after month names | Line | optional |
Link | lk | whether to automatically link days (d), months (m) and years (y)
| String | optional |
Link prefix | lk_pref | Text to add before all links | Line | optional |
Link suffix | lk_suff | Text to add after all links | Line | optional |
Day link prefix | lk_pref_d | Text to add before links to days | Line | optional |
Day link suffix | lk_suff_d | Text to add after links to days | Line | optional |
Month link prefix | lk_pref_m | Text to add before links to months | Line | optional |
Month link suffix | lk_suff_m | Text to add after links to months | Line | optional |
Next link prefix | lk_pref_mnext | Text to add before the link to the next month (or year) | Line | optional |
Next link suffix | lk_suff_mnext | Text to add after the link to the next month (or year) | Line | optional |
Previous link prefix | lk_pref_mprev | Text to add before the link to the previous month (or year) | Line | optional |
Previous link suffix | lk_suff_mprev | Text to add after the link to the next month (or year) | Line | optional |
Text colour | fc | Adds the colour of the text
| String | optional |
{{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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
Type | Adjustable | Current | Last | Next |
---|---|---|---|---|
Date and time | {{time}} | {{Currentdate}} (MDY) {{Plain now}} (DMY) {{Now}} (DMY in a complete sentence) {{Simple now}} |
||
Date only | {{Dateonly}} {{Datedow}} (Has the day of the week) |
{{Date}} (Chose format) {{DATE}} (prefixed by date=) {{TODAY}} (DMY) |
{{Yesterday}} {{Day-1}} |
{{Tomorrow}} {{Day+1}} |
Month and year only | {{Monthyear}} | {{Monthyear-1}} | {{Monthyear+1}} | |
Time only | {{Timeonly}} | {{CURRENTTIME}} (12 h format) {{CURRENTTIME24}} (24 h format) |
||
Banners | {{Right now}} (Blue with time and number of Wikipedia articles) |
|||
Timestamp | {{Timestamp}} (Format YYYYMMDDhhmmss) |
Unit of time | Adjustable | Current | Last | Next |
---|---|---|---|---|
Second | {{CURRENTSECOND}} | |||
Minute | {{CURRENTMINUTE}} | |||
Hour | {{CURRENTHOUR}} | |||
Week | {{CURRENTWEEK}} {{CURRENTWEEKOFMONTH}} |
|||
Day of Week | {{DAYOFWEEK}} | {{CURRENTDAYNAME}} {{CURRENTWEEKDAYABBREV}} {{CURRENTWEEKDAY}} |
||
Month | {{MONTHNAME}} {{MONTHABBREV}} {{MONTHNUMBER}} {{MONTH}} (zero padded) |
{{CURRENTMONTHNAME}} {{CURRENTMONTHABBREV}} {{CURRENTMONTH1}} {{CURRENTMONTHDAYS}} |
{{LASTMONTHNAME}} | {{NEXTMONTHNAME}} |
Day of Month | {{CURRENTDAY}} {{CURRENTDAY2}} (zero padded) |
|||
Year | {{CURRENTYEARCC}} {{CURRENTYEARYY}} {{CURRENTISOYEAR}} {{CURRENTYEAR}} |
{{LASTYEAR}} | {{NEXTYEAR}} | |
Day of Year | {{CURRENTDAYOFYEAR}} | |||
Decade | {{DECADE}} | {{CURRENTDECADE}} | ||
Century | {{Century}} | {{CURRENTCENTURY}} | ||
MILLENNIUM | {{MILLENNIUM}} |
Month:
{{Lmonth}} produces Oct
{{Nmonth}} produces Dec
{{Last month}} produces October 2024
{{Next month}} produces December 2024