Diff: Help/CalendarListPlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 4 and previous revision of Help/CalendarListPlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 4 Last edited on 22 May 2014 3:01 by harold Revert
Older page: version 3 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,18 +1,110 @@
-The Help:n | Help: is used in conjunction with the CalendarPlugin. It was written for those who use a wiki as a personal information manager. 
+The **~CalendarList** [[ Help:WikiPlugin |plugin]] is used in conjunction with the [[Help: CalendarPlugin|Calendar]] plugin .  
+ It was written for those who use a wiki as a [[PhpWiki:PersonalWiki| personal information manager]]
  
-Just click any date in the calendar, edit the for that date, then come back to this page. The event should be listed below the calendar. 
+Just click any date in the calendar, edit the for that date, then come back to  
+ this page. The event should be listed below the calendar. 
  
-Usage:  
-<verbatim>  
-<?plugin Calendar ?>  
-<?plugin CalendarList ?>  
-< /verbatim>  
+Honors now year + month args as start base - together with Calendar navigation.  
+The behaviour before 2007 with last /next_n_days was to start now.  
  
-Example (click any date and edit it, then return to this page):  
-<?plugin Calendar ?>  
+== Usage ==  
  
-<?plugin CalendarList ?
+{{{  
+<<Calendar>>  
+< <CalendarList>>  
+}}}  
  
------  
+== Example ==  
  
-PhpWikiDocumentation Help:WikiPlugin  
+//Click any date and edit it, then return to this page//:  
+  
+<<Calendar>>  
+  
+<<CalendarList>>  
+  
+== Arguments ==  
+  
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| **year**  
+| Specify the year for the calendar.  
+| Current year  
+|-  
+| **month**  
+| Specify the month for the calendar.  
+| Current month  
+|-  
+| **prefix**  
+| Prefix  
+| Current page  
+|-  
+| **date_format**  
+| Date format  
+| %Y-%m-%d  
+|-  
+| **order**  
+| Report sequence: "normal" or "reverse". "reverse" displays newest dates first.  
+| PLUGIN_CALENDARLIST_ORDER  
+|-  
+| **month_offset**  
+| Month offset  
+| 0  
+|}  
+  
+=== Support ranges: next or last N days/events ===  
+  
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| **next_n_days**  
+| next_n_days=60: Display entries for the next 60 days / 2 months.  
+| PLUGIN_CALENDARLIST_NEXT_N_DAYS (empty)  
+|-  
+| **next_n**  
+| next_n=20: Display only the next 20 entries. Ignored if next_n_days is defined.  
+| PLUGIN_CALENDARLIST_NEXT_N (empty)  
+|-  
+| **last_n_days**  
+| last_n_days=60: Display entries for the last 60 days / 2 months.  
+| PLUGIN_CALENDARLIST_LAST_N_DAYS (empty)  
+|-  
+| **last_n**  
+| last_n=20: Display only the last 20 entries. Ignored if last_n_days is defined.  
+| PLUGIN_CALENDARLIST_LAST_N (empty)  
+|-  
+| **month_format**  
+| How to display the Month.  
+| %B %Y  
+|-  
+| **wday_format**  
+| How to display the weekday, if supported by your strftime() function.  
+| %a  
+|-  
+| **start_wday**  
+| Start the week at Sunday or Monday  
+| 1 for Monday  
+|}  
+  
+== Config Options ==  
+  
+* PLUGIN_CALENDARLIST_ORDER = normal  
+* PLUGIN_CALENDARLIST_NEXT_N_DAYS = ''  
+* PLUGIN_CALENDARLIST_NEXT_N = ''  
+* PLUGIN_CALENDARLIST_LAST_N_DAYS = ''  
+* PLUGIN_CALENDARLIST_LAST_N = ''  
+  
+== Author ==  
+  
+Derived from [[ Help:CalendarPlugin|Calendar]] plugin by [[mailto:martin@safelogic.se|Martin Norbäck]].  
+  
+<noinclude>  
+----  
+[[PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
+</noinclude>  

version 4

The CalendarList plugin is used in conjunction with the Calendar plugin. It was written for those who use a wiki as a personal information manager.

Just click any date in the calendar, edit the for that date, then come back to this page. The event should be listed below the calendar.

Honors now year + month args as start base - together with Calendar navigation. The behaviour before 2007 with last/next_n_days was to start now.

Usage

<<Calendar>>
<<CalendarList>>

Example

Click any date and edit it, then return to this page:

< May 2024 >
Mon Tue Wed Thu Fri Sat Sun
 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 

Arguments

Argument

Description

Default value

year

Specify the year for the calendar.

Current year

month

Specify the month for the calendar.

Current month

prefix

Prefix

Current page

date_format

Date format

%Y-%m-%d

order

Report sequence: "normal" or "reverse". "reverse" displays newest dates first.

PLUGIN_CALENDARLIST_ORDER

month_offset

Month offset

0

Support ranges: next or last N days/events

Argument

Description

Default value

next_n_days

next_n_days=60: Display entries for the next 60 days / 2 months.

PLUGIN_CALENDARLIST_NEXT_N_DAYS (empty)

next_n

next_n=20: Display only the next 20 entries. Ignored if next_n_days is defined.

PLUGIN_CALENDARLIST_NEXT_N (empty)

last_n_days

last_n_days=60: Display entries for the last 60 days / 2 months.

PLUGIN_CALENDARLIST_LAST_N_DAYS (empty)

last_n

last_n=20: Display only the last 20 entries. Ignored if last_n_days is defined.

PLUGIN_CALENDARLIST_LAST_N (empty)

month_format

How to display the Month.

%B %Y

wday_format

How to display the weekday, if supported by your strftime() function.

%a

start_wday

Start the week at Sunday or Monday

1 for Monday

Config Options

  • PLUGIN_CALENDARLIST_ORDER = normal
  • PLUGIN_CALENDARLIST_NEXT_N_DAYS = ''
  • PLUGIN_CALENDARLIST_NEXT_N = ''
  • PLUGIN_CALENDARLIST_LAST_N_DAYS = ''
  • PLUGIN_CALENDARLIST_LAST_N = ''

Author

Derived from Calendar plugin by Martin Norbäck.