SourceForge.net Logo
May 18, 2006
© GPL
 
ProWikiCenter
Cdml Calendar
 
The calendar function produces a tabular display which may link to pages for each day or - better - to sections within pages for each month. Actual dates can optionally show in a graphical bar.

The simple example:

March 2024
MoTuWeThFrSaSu
    123
45678910
11121314151617
18192021222324
25262728293031
       

is produced by the following input:

 [[calendar]]
Another example:

January 2024
MoTuWeThFrSaSu
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


 


 


 


 


 


 


 


 


 


 


 


February 2024
MoTuWeThFrSaSu
 


 


 


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


 


 


 


 


 


 


 


 


 


 


March 2024
MoTuWeThFrSaSu
 


 


 


 


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


 


 


 


 


 


 


 


is produced by:

 [[calendar][month=-1][count=3][options=s][distance=20]]

parameters

In addition to the following parameters you can use all CdmlTable parameters.

  • distance sets the horizontal position of the calendar display (default: centered)
    • e.g. [distance=30]
  • subtitlebackground background color of the second row containing the labels for the days.
    • e.g. [subtitlebackground=lightgreen]
  • todaybackground background color for the current day (default: lightblue).
    • e.g. [todaybackground=pink]
  • weekendbackground backgroundcolor for saturdays and sundays (default: lightgray)
    • e.g. [weekendbackground=white]
  • options special options (default: empty)
    • e.g. [options=s] graphical bar display of the actual dates
  • linkpattern sets the link-URL (default: {page}/{year}{month}#{day})
    • e.g. [linkpattern=Calendar {year}__{month}__{day}] (Example for pages for each day)
  • timerange sets the time range displayed in the graphical bar (default: 8:00-18:00)
    • e.g. [timerange=0:00-24:00]
  • page sets the page that is used for replacing {page} in the link pattern (default: the current page)
    • e.g. [page=Calendar] Sets the base name absolutely.
  • year and the parameter month set the month displayed (default: the current year)
    • e.g. [year=2010]
  • month and the parameter year set the month displayed (default: das current month)
    • e.g. [month=10] sets October absolutely
    • e.g. [month=0] the current month
    • e.g. [month=-1] the previous month
    • e.g. [month=+1] the next month
    • e.g. [month=-4q] the addition option q makes the starting month the beginning of a quarter (by stepping back one or two months if necessary).
  • count number of the months displayed (default:1)
    • e.g. [count=3] three months are displayed
  • columns number of the months displayed horizontally (default:3). Will only have an effect if count is greater than columns.
    • e.g. [columns=6] six months are displayed side by side
  • calendarpadding sets the free space between the months (default:2)
    • e.g. [calendarpadding=6]
  • barheight changes the height of the graphical bar (default: 4)
    • e.g. [barheight=10]. Note: makes only sense used together with [options=s].
  • bardistance changes the vertical distance between the day number and the graphical bar (default: 2). Note: makes only sense used together with [options=s].
    • e.g. [bardistance=5]

More examples (use "Edit" to look at the input for producing them)

January 2006
MoTuWeThFrSaSu
      1
2345678
9101112131415
16171819202122
23242526272829
3031     
February 2006
MoTuWeThFrSaSu
  12345
6789101112
13141516171819
20212223242526
2728     
       
March 2006
MoTuWeThFrSaSu
  12345
6789101112
13141516171819
20212223242526
2728293031  
       

December 2004
MoTuWeThFrSaSu
 


 


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


 


 


 


 


 


 


 


 


 


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


FolderWikiFeatures FolderCdml