Nigel Metheringham
Contents
IndentTable rework
- This page crashes
Thank you for reporting a bug in MoinMoin.
- This page crashes
Modified Calendar Processor
OK, here is a first cut at a Calendar which pushes wiki text out with markup for table formatting. It works passably well as a first attempt (for a python novice). Calendar.py
Input format is as the previous form, except that anything within the input line will be treated as normal wiki input - so links and markup can be added, within the constraint of a single line of input text.
Issues:-
- The Month/Year title looks a little silly since the font is the same size as the rest - theres no way to get a larger header font that I can see at present.
Adding conflicting markup into the entries is likely to have exciting results - for example add a || into a line.
- Long links (and unwrappable text) will do strange things to the table layout
- The height of table cells is purely set by the content - this means that the calendar looks very ragged, and empty rows are the same height has the caption rows, which looks wrong.
Comments and suggestions gratefully received.
Future Plans/Ideas
Add an OPTION to take calendar data from an attachment file
Add OPTIONs to restrict start and end date of calendar - with the above allows a single (or maybe multiple) attchment calendar sources to be spat out as (say) 1 month calendars for different windows on the overall period.
Add OPTION to list the events in the calendar
Add OPTION to hide calendar (ie if you had list you could drop the calendar)
Add OPTION to do (maybe multiple) small calendars without text content, but marking used days - again you would use it with the list option. Crossing over to the MonthCalendar stuff in some respects, although this is more table driven.
Comments
One of the things i like about the MonthCalendar is that each event is a sub-page. I see that you are really talking about the Calendar macro, not the Month Cal, but i'd love to see output like this from the MonthCalendar! JosYule
You could use DateUtil by Gustavo Niemeyer to generalise the date input format.
Sample Input
OPTION:bodyBGColor=#DDDDDD OPTION:captionBGColor=#CCCCFF OPTION:firstWeekDay=6 20040707: Calendar 1.0 released 20040701: First of the month 20040731: End of the month 20040730: Link to FrontPage
Sample (Simulated) Output
July 2004 |
||||||
Sunday |
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
|
|
|
|
1 |
2 |
3 |
|
|
|
|
First of the month |
|
|
4 |
5 |
6 |
7 |
8 |
9 |
10 |
|
|
|
Calendar 1.0 released |
|
|
|
11 |
12 |
13 |
14 |
15 |
16 |
17 |
|
|
|
|
|
|
|
18 |
19 |
20 |
21 |
22 |
23 |
24 |
|
|
|
|
|
|
|
25 |
26 |
27 |
28 |
29 |
30 |
31 |
|
|
|
|
|
Link to FrontPage |
End of the month |
Apache & Mod Python rework