Template:Static-calendar-month/doc
Documentation
This template displays a calendar for a specified month. By default, the calendar is floated to the right side of the page, but it can be floated to the left or not floated at all if desired, as explained below.
Usage
{{calendar-month}}{{calendar-month|YYYY|MM}}{{calendar-month|YYYY|MM|nofloat=y}}{{calendar-month|YYYY|MM|float=left}}
YYYY must be a year between 2006 and 2024. No other years are supported (yet). MM must be a 2-digit number between 01 and 12.
nofloat can be used to disable the floating of the calendar (in which case, the calendar shows up on a line by itself, and any text that follows the temlpate call at the position in the page that the template call is made). The value y can actually be any string containing at least one non-whitespace character (like true or even false — both of these have exactly the same effect).
Examples
| January 2026 | ||||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
{{calendar-month}}⇒
When called with no input, a calendar for the current month is displayed.
| February 2020 | ||||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
{{calendar-month|2020|02}}⇒
| February 2020 | ||||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
{{calendar-month|2020|2}}⇒
As seen in this example, 1-digit month numbers don't work.
before{{calendar-month|2020|02|nofloat=y}}after
⇓
before
afterFebruary 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 before{{calendar-month|2020|02|float=left}}after
⇓
before
| February 2020 | ||||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |