Generates a monthly calendar and creates link anchors from each day and week to somewhere else. A user can then place anchors further down in the page and the calendar date will link to them. The generated anchors correspond to ISO 8601 standard.
This plugin is one of the building blocks for a time management plugin I've written. But it might be useful by itself.
This plugin is kind of the "reverse" of the TWiki:Plugins.CalendarPlugin (which may also be of interest) which generates a custom calendar from wiki text. This TWiki:Plugins.QuickCalendarPlugin
generates a fixed calendar which links to wiki text.
For recent changes, see TWiki:Plugins.QuickCalendarPluginDev.
month="sep"
or month="september"
or month="9"
year="yyyy"
(must be a four digit year! "01" would be 01 C.E. )
href="some url here"
some url hereYYYYMMDD
or some url hereYYYYWW
doy="on"
will display dates in day-of-the-year format (see example below). Default: off
month="+4"
or month="-6"
year="+2"
or year="-1"
By default the plugin displays the current month:
You Type: %CAL%
You Type: %CAL{month="sep" year="2003"}%You Get (note "today" is highlighted):
September 2003 (9/2003) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2003.35 | 1 | 2 | 3 | 4 | 5 | 6 | |
2003.36 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
2003.37 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
2003.38 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
2003.39 | 28 | 29 | 30 |
If you like, you can specify doy="on"
as an argument, and get a calendar which uses days of the year. This is handy for some things, like astronomy. Type ==
April 2025 (4/2025) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2025w14 | 91 | 92 | 93 | 94 | 95 | ||
2025w15 | 96 | 97 | 98 | 99 | 100 | 101 | 102 |
2025w16 | 103 | 104 | 105 | 106 | 107 | 108 | 109 |
2025w17 | 110 | 111 | 112 | 113 | 114 | 115 | 116 |
2025w18 | 117 | 118 | 119 | 120 |
October 2003 (10/2003) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2003w40 | 274 | 275 | 276 | 277 | |||
2003w41 | 278 | 279 | 280 | 281 | 282 | 283 | 284 |
2003w42 | 285 | 286 | 287 | 288 | 289 | 290 | 291 |
2003w43 | 292 | 293 | 294 | 295 | 296 | 297 | 298 |
2003w44 | 299 | 300 | 301 | 302 | 303 | 304 |
name="#anchor"
), either (a) within the current topic in anchor mode, (b) a topic of the user's wiki name in non anchor mode, or (c) the user specified href. href="link"
This line contains an anchor to "work week" 38 (in year 2003)
This line contains an anchor to the date 09/27/2003
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
File: | Description: |
---|---|
data/TWiki/QuickCalendarPlugin.txt | Plugin topic |
lib/TWiki/Plugins/QuickCalendarPlugin.pm | Plugin Perl module |
The following should display a calendar of Dec 2006
December 2006 (12/2006) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2006w49 | 1 | 2 | |||||
2006w50 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
2006w51 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
2006w52 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
2006w53 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
2006w54 | 31 |
The following should display a small calendar of month+1
May 2025 (5/2025) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2025w18 | 1 | 2 | 3 | ||||
2025w19 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
2025w20 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
2025w21 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
2025w22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
The following should display a small calendar of month-14/year+1 (two months ago)
February 2025 (2/2025) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2025w05 | 1 | ||||||
2025w06 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
2025w07 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
2025w08 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
2025w09 | 23 | 24 | 25 | 26 | 27 | 28 |
The following should display a small calendar of month=12/year=2001
December 2001 (12/2001) | |||||||
---|---|---|---|---|---|---|---|
Week | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
2001w48 | 1 | ||||||
2001w49 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
2001w50 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
2001w51 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
2001w52 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
2001w53 | 30 | 31 |
Plugin Author: | TWiki:Main.JonathanCline![]() |
Copyright: | © 2003 TWiki:Main.JonathanCline![]() © 2007-2011 TWiki:TWiki.TWikiContributor ![]() |
License: | GPL (GNU General Public License![]() |
Plugin Version: | 2011-01-13 (V1.4) |
Change History: | |
2011-01-13: | TWikibug:Item6530![]() ![]() |
2003-10-10: | 1.300 add doy, add internal enhancements, fix ww numbering |
2003-09-08: | 1.220 cosmetic upgrades & enhancements by TWiki:Main/WillNorris![]() |
1.210 bug fixes and specific date selection | |
2003-08-23: | 1.100 initial |
CPAN Dependencies: | none |
Other Dependencies: | POSIX package in Perl (should be standard) |
Perl Version: | 5.005 |
Plugin Home: | TWiki:Plugins/QuickCalendarPlugin![]() |
Feedback: | TWiki:Plugins/QuickCalendarPluginDev![]() |
Related Topics: TWikiPreferences, TWikiPlugins