dev

This module shows a calendar, with the months and days of the year. It can display a monthly or a yearly calendar with various formatting options.

Installation

Lua installation

CSS installation

Examples

May 2014 monthly calendar
{{Calendar widget|year = 2014|month = May}}


May 2014
SuMoTuWeThFrSa
    123
45678910
11121314151617
18192021222324
25262728293031


Current year yearly calendar, with current day highlighted
{{Calendar widget|show_today = yes}}


2026
January
SuMoTuWeThFrSa
    123
45678910
11121314151617
18192021222324
25262728293031
February
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
March
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031    
April
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
2627282930  
May
SuMoTuWeThFrSa
     12
3456789
10111213141516
17181920212223
24252627282930
31      
June
SuMoTuWeThFrSa
 123456
78910111213
14151617181920
21222324252627
282930    
July
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
262728293031 
August
SuMoTuWeThFrSa
      1
2345678
9101112131415
16171819202122
23242526272829
3031     
September
SuMoTuWeThFrSa
  12345
6789101112
13141516171819
20212223242526
27282930   
October
SuMoTuWeThFrSa
    123
45678910
11121314151617
18192021222324
25262728293031
November
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
2930     
December
SuMoTuWeThFrSa
  12345
6789101112
13141516171819
20212223242526
2728293031  

Parameters

Calendar parameters

Styling parameters

Linking parameters

Link prefixes and suffixes

These parameters require |lk=:

These parameters automatically set |lk= to the appropriate value; override values assigned to |lk_pref= and |lk_suff=:

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

Examples

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

|k_pref_mprev=# – creates link to [[An example page#April]]
|k_pref_mnext=# – creates link to [[An example page#June]]

if the current page is a subpage [[An example page/May]] and there is a May calendar there, to offer links to the previous month and next month subpages set:

|k_pref_mprev=../ – creates link to [[An example page/April]]
|k_pref_mnext=../ – creates link to [[An example page/June]]
in ../, .. is the parent ([[An example page]]) and / is the required path separator; see Wikipedia:Uniform Resource Identifier

See also