~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/underlay/pages/HelpOnMacros(2f)MonthCalendar/revisions/00000001

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Please edit system and help pages ONLY in the master wiki!
 
2
## For more information, please see MoinMoin:MoinDev/Translation.
 
3
##master-page:
 
4
##master-date:
 
5
#acl -All:write Default
 
6
#format wiki
 
7
#language en
 
8
 
 
9
<<Navigation(siblings)>>
 
10
<<BR>><<BR>>
 
11
 
 
12
== MonthCalendar ==
 
13
 
 
14
This macro is for those who want to use MoinMoin as a Personal Information Manager and need a calendar wiki integration.
 
15
 
 
16
=== Example ===
 
17
{{{
 
18
Usage:
 
19
<<MonthCalendar(BasePage,year,month,monthoffset,monthoffset2,height6,anniversary,template)>>
 
20
 
 
21
each parameter can be empty and then defaults to currentpage or currentdate or monthoffset=0
 
22
 
 
23
 
 
24
Samples:
 
25
 
 
26
Calendar of Page SampleUser, this year's december: 
 
27
<<MonthCalendar(SampleUser,,12)>>
 
28
 
 
29
Calendar of current Page, this year's december:
 
30
<<MonthCalendar(,,12)>>
 
31
 
 
32
Calendar of December, 2001:
 
33
<<MonthCalendar(,2001,12)>>
 
34
 
 
35
Calendar of the month two months after December, 2001
 
36
(maybe doesn't make much sense, but is possible)
 
37
<<MonthCalendar(,2001,12,+2)>>
 
38
 
 
39
Calendar of year 2002 (every month padded to height of 6):
 
40
||||||Year 2002||
 
41
||<<MonthCalendar(,2002,1,,,1)>>||<<MonthCalendar(,2002,2,,,1)>>||<<MonthCalendar(,2002,3,,,1)>>||
 
42
||<<MonthCalendar(,2002,4,,,1)>>||<<MonthCalendar(,2002,5,,,1)>>||<<MonthCalendar(,2002,6,,,1)>>||
 
43
||<<MonthCalendar(,2002,7,,,1)>>||<<MonthCalendar(,2002,8,,,1)>>||<<MonthCalendar(,2002,9,,,1)>>||
 
44
||<<MonthCalendar(,2002,10,,,1)>>||<<MonthCalendar(,2002,11,,,1)>>||<<MonthCalendar(,2002,12,,,1)>>||
 
45
 
 
46
Current calendar of me, also showing entries of A and B:
 
47
<<MonthCalendar(MyPage*TestUserA*TestUserB)>>
 
48
 
 
49
SubPage calendars:
 
50
<<MonthCalendar(MyName/CalPrivate)>>
 
51
<<MonthCalendar(MyName/CalBusiness)>>
 
52
<<MonthCalendar(MyName/CalBusiness*MyName/CalPrivate)>>
 
53
 
 
54
Anniversary Calendars: (no year data)
 
55
<<MonthCalendar(Yearly,,,+1,,6,1)>>
 
56
 
 
57
This creates calendars of the format Yearly/MM-DD
 
58
By leaving out the year, you can set birthdays, and anniversaries in this
 
59
calendar and not have to re-enter each year.
 
60
 
 
61
This creates a calendar which uses MonthCalendarTemplate for directly editing
 
62
nonexisting day pages:
 
63
<<MonthCalendar(,,,,,,MonthCalendarTemplate)>>
 
64
}}}
 
65
 
 
66
=== Display ===
 
67
 
 
68
The simplest version looks like this: 
 
69
<<MonthCalendar>>
 
70
 
 
71
The previous month's calendar for page "OtherUser" looks like that:
 
72
<<MonthCalendar(OtherUser,,,-1)>>
 
73
 
 
74
see also: HelpOnMacros
 
75
 
 
76
=== Usage ===
 
77
 
 
78
When an event is entered on a date, that date will be highlighted on the calendar, which you can also mouse over and get a javascript pop-up.
 
79
To get a summary in that pop-up, put the summary in a heading 1 case, like {{{= Big Birthday Today! =}}}