Module:Calendar widget/doc explained

Usage

Parameters

Calendar parameters

numbers 1 to 12 – defaults to current month when month number is out of range

month names (January, March, etc) – defaults to current month when month name is not recognized

keywords:

current – display the current month

last – display the month that occurs before the current month

next – display the month that occurs after the current month

Styling parameters

center – middle of the page

right – at the right page margin

Linking parameters

d – link days in calendar to calendar day of calendar month – <nowiki>[[</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}]]

m – link month in calendar header to month article – <nowiki>[[</nowiki>{{CURRENTMONTHNAME}}]] 2019

y – link year in calendar header to year article – {{CURRENTMONTHNAME}} <nowiki>[[</nowiki>{{CURRENTYEAR}}]]

dm – link to days and month

dy – link to days and year

my – link to month and year

yes – individually link all date components

m&y – stand-alone month calendars only; link month and year together as a single composite link – <nowiki>[[</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}]]

dm&y – stand-alone month calendars only; link to days and composite month/year

Link prefixes and suffixes

These parameters require :

These parameters automatically set to the appropriate value; override values assigned to and :

For stand-alone month calendars only, links to previous- and next-month targets:

Examples

if the current page and section is <nowiki>[[An example page#May]]</nowiki> and there is a May calendar there, to offer links to the previous month (April) and next month (June) sections set:

– creates link to <nowiki>[[An example page#April]]</nowiki>

– creates link to <nowiki>[[An example page#June]]</nowiki>if the current page is a subpage <nowiki>[[An example page/May]]</nowiki> and there is a May calendar there, to offer links to the previous month and next month subpages set:

– creates link to <nowiki>[[An example page/April]]</nowiki>

– creates link to <nowiki>[[An example page/June]]</nowiki>

in ../, .. is the parent (<nowiki>[[An example page]]</nowiki>) and / is the required path separator; see Uniform Resource Identifier