Template:Calendar2/doc

From The Wiki Camp 2
Jump to navigation Jump to search

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.


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
Awawa






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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Calendar monthmonth

Select a default calendar month, or write a new one (see documentation)

Example
month=April
Auto value
January
Stringrequired
Calendar yearyear

Select a calendar year to display. Defaults to CURRENTYEAR

Example
year=2026
Dateoptional