Template:Calendar2/doc
Programmatically write a Calendar month entry.
Usage
{{Calendar2|month=February|year=2023
|1=a
|2=b
|3=c
|22=[[22]]
|24 = g
|32 = secret bonus !}}
{{Calendar2|month=NewMonth|length=10|offset=162|name=[[Awawa]]|2=a|...|9=i|12=k}}
Month is a required value, with the typical options:
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
for typical months, or NewMonth for something different. The year defaults to the current year, or can be provided manually.
For any month, the module takes both unlabeled and numbered inputs. Just adding another input puts it in the next available spot, or putting a number (1=a) puts that key at that spot.
Unlabeled inputs start from 1, after the labeled inputs. Source editor will warn about this. |
Bonus: Days can be added past the length of the month, if there is sufficient space remaining in the row.
NewMonth
To use, input a length, offset, and name as values.
Length and offset are both in days, but the module gives some hints on what months are around where in the year, in the individual month section.
Example
| SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
... |
2
a |
| 3
|
4
|
5
|
6
|
7
|
8
|
9
i |
| 10
|
k |
TemplateData
Simplified boilerplate for writing a [[Calendar]] entry. Assign dates manually with (number) = (value), or defining every value, separated by pipes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Calendar month | month | Select a default calendar month, or write a new one (see documentation)
| String | required |
| Calendar year | year | Select a calendar year to display. Defaults to CURRENTYEAR
| Date | optional |