The HolidaylistPlugin handles the tag %HOLIDAYLIST% that inserts a vacation list on the current page. Smilies are used to indicate if a person is in work or on holiday.
The plugin creates a table filled with Smilies and today's date will be the first column. There is a row in the table for each person and each day is flagged as either: (in work), (a day off) or (absent for some time), (not at work; used if you type a location). You can also use other smilies (like :skull:).
Example (image):
Usage Examples
To insert vacations into the table, create a bullet list. Three spaces and then a *.
The syntax is described below (Syntax).
Example1: To list that John will be away on 1-July-2005
* 01 Jul 2005 - John
Example2: To list that Mary will be away from 3-Sep - 9-Sep 2005
* 03 Sep 2005 - 09 Sep 2005 - Mary
Example3: To list that Jill will be in Paris from 10-Sep - 11-Sep 2005 and in Tokyo on 15 Sep 2005
* 10 Sep 2005 - 11 Sep 2005 - Jill - Paris
* 15 Sep 2005 - Jill - Tokyo
Example4: To list that Eve will be ill from 12-Sep - 20-Sep 2005 with her own 'smily'
* 12 Sep 2005 - 20 Sep 2005 - Eve - is ill - :skull:
Example5: To list that Lisa will by not at work from April to June and the complete December 2005:
* Apr 2005 - Jun 2005 - Lisa
* Dec 2005 - Lisa
Example6: To list in all time table entries that anybody will be not at work on Christmas Day:
* 25 Dec 2005 - Christmas Day @all
Example7: There are several attributes (see Attributes) like days (defaults to 30days) and tablecaption (defaults to null).
%HOLIDAYLIST{days="90" tablecaption="Planned Holidays"}%
* 02 Oct 2005 - 22 Oct 2005 - Fred - is ill - :skull:
* MMM yyyy - name
* May 2005 - Carl
* MMM yyyy - name - location
* Jun 2005 - Sam - in Sidney
* MMM yyyy - name - location - icon
* Nov 2005 - Lisa - is ill for a complete month - :skull:
* MMM yyyy - MMM yyyy - name
* Jun 2005 - Jul 2005 - Lily
* MMM yyyy - MMM yyyy - name -location
* Feb 2005 - Apr 2005 - Lisa - is not at work
* MMM yyyy - MMM yyyy - name - location - icon
* Nov 2005 - Dec 2005 - Lola - is 2 month not at work - :yes:
Exception
insert the following before the name field and after a date (range): X { dd MMM yyyy, dd MMM yyy - dd MMM yyyy }
* Dec 2005 X { 5 Dec 2005 - 7 Dec 2005, 12 Dec 2005 } - Sarah - will be away for the complete december except between 5 Dec and 7 Dec and on 12 Dec 2005
Public Holidays
just type '@all' in the name field
* 25 Dec 2005 - Christmas Day @all
Notes and hints:
At least one space character have to stay before and after a seperator ('-'). This allows you to use a '-' in names, locations or icons, e.g. if you have a composite name like Eva-Maria.
If you change the default language ('lang' attribute; see Attributes) you can use your language specific month and day names or the abbreviations for any entry type (including TWiki:Plugins.CalendarPlugin event types).
If you change the month names or day names ('monthnames' and 'daynames' attributes; see Attributes) you can use it for your entries (including TWiki:Plugins.CalendarPlugin event types).
You can hide all calendar entries if you put them into HTML comments, e.g:
%HOLIDAYLIST%
<!--
* 24 Dec 2005 - Sam - @home
-->
You can put the entries to another topic and use the topic attribute, e.g:
%HOLIDAYLIST{topic="TimeTableDataTopic" tablecaption="Planned Holidays (see TimeTableDataTopic)"}%=
You can hide '@all' in an entry if you put it into HTML comments, e.g:
costum daynames (a list separated by a '¦' and starting on Monday; overwrites lang attribute)
daynames="M¦T¦W¦T¦F¦S¦S"
days
number of days to show
days="30"
enablepubholidays
enables/disables public holidays (bullet list entries with a @all in a person field; related: showpubholidays, pubholidayicon)
enablepubholidays="1"
lang
language (related: daynames, monthnames)
lang="English"
month
set a month (e.g. Jan, Feb ... or 01, 02, ... 12 ) or a month offset (e.g. +0, +1, -2,...) Note: If you use this month attribute the days attribute will be ignored (days will be set to the duration of the month).
month="+1"
monthnames
custom month names (a list separated by '¦' and starting on January; overwrites lang attribute)
monthnames="J¦F¦M¦A¦M¦J¦J¦A¦S¦O¦N¦D"
navdays
defines the days to navigate to (default: value of the days attribute)
navdays="30"
removeatwork
set to "1" to remove persons without calendar entries from table
removeatwork="0"
showmonthheader
set to "1" to show a additional month header
showmonthheader="0"
showpubholidays
show public holidays as separate lines (rows) in table (related: enablepubholidays, pubholidayicon)
showpubholidays="0"
showweekends
show weekends if set to 1
showweekends="0"
startdate
a start date (e.g. '1 Oct 2005') or a day offset (e.g. '10', '+30' or '-30')
startdate="+0"
topic
a comma separated list of source topics
topic="%TOPIC%"
week
set a week (1..52) or a week offset (-1, +0, +1, +2, ...)
week="+0"
year
set a year (e.g. 2005, 2006 ...) or a year offset (e.g. +0, +1, -1, ...)
not at work icon (only used if you type a location)
notatworkicon=":-I"
pubholidayicon
public holiday icon (related: enablepubholidays, showpubholidays)
pubholidayicon=":-)"
workicon
in work icon
workicon=" "
Table Formatting
border
table border
border="1"
cellpadding
table cell padding
cellpadding="1"
cellspacing
tabel cell spacing
cellspacing="0"
daynames
costum daynames (a list separated by a '¦' and starting on Monday; overwrites lang attribute)
daynames="M¦T¦W¦T¦F¦S¦S"
headerformat
table header format of a day; a subset of strftime conversion specifiers is supported (only date not time specificiers; see manual page or TWiki:Codev.ConvergeDateTimeFormattingModels)
background color for today cells (usefull if you use startdate attribute)
todaybgcolor="white"
todayfgcolor
foreground color for today cells (usefull for a dark todaybgcolor)
todayfgcolor="black"
weekendbgcolor
background color of weekend header and data table cells
weekendbgcolor="%WEBBGCOLOR%"
width
width of table in pixels or percent
width="100%"
Hints:
You can use TextFormattingRules for some attribute values: tablecaption, name, holidayicon, adayofficon, workicon, notatworkicon, compatmodeicon, pubholidayicon
Every attribute of %HOLIDAYLIST% can also be used as plugin setting. You only have to use capital letters.
Set SHORTDESCRIPTION = Create a table with a list of people on holidays
Days to show (default: 30)
# Set DAYS = 30
Language (default: English - see manual page of Date::Calc perl module, e.g: English, Deutsch, Français, Español, Nederlands, Dansk, suomi, ...).
# Set LANG = Deutsch
Content of the first cell (default: Name):
# Set NAME = Name
Set work icon (default: - old behavior: :mad: ):
# Set WORKICON =
Set compatibility mode (default: 0; disables all TWiki:Plugins.CalendarPlugin event types) and icon (default: 8-))
# Set COMPATMODE = 1
# Set COMPATMODEICON =
Set unknown parameter message (default: %RED% Sorry, some parameters are unknown: %UNKNOWNPARAMSLIST% %ENDCOLOR% <br/> Allowed parameters are (see TWiki.HolidaylistPlugin topic for more details): %KNOWNPARAMSLIST%)
# Set UNKNOWNPARAMSMSG = Following parameter(s) is/are unknown: %UNKNOWNPARAMSLIST%
Enable/Disable public holiday support (default: 1; public holiday support is enabled), show public holidays as separate lines in table (default: 0; public holidays are not shown as separate rows in table); public holiday icon (default: :-))
# Set ENABLEPUBHOLIDAYS = 1
# Set SHOWPUBHOLIDAYS = 0
# Set PUBHOLIDAYICON =
Note: Every attribute of %HOLIDAYLIST% can also be used as plugin setting. You only have to use capital letters.
TWiki:Main.DanielRohde: fixed minor HTML bug reported by TWiki:Main.JfMacaud; added month header feature (showmonthheader attribute) requested by Rikard Johansson; fixed some minor bugs (documentation, preferences handling);
TWiki:Main.DanielRohde: improved performance; fixed major periodic repeater bug; added parameter check; fixed flag parameter handling; allowed language specific month and day names for entries; fixed minor repeater bugs; added new attributes: monthnames, daynames, width, unknownparamsmsg
v1.010 (5 Jul 2005):
TWiki:Main.DanielRohde: added exception handling; added compatibility mode (new attributes: compatmode, compatmodeicon) with full CalendarPlugin event type support; added documentation
v1.009 (29 Jun 2005):
TWiki:Main.DanielRohde: fixed major bug (WikiNames and forced links in names) reported by TWiki:Main.KennethLavrsen; fixed documentation bugs; added INCLUDE expansion (for topics in topic attribute value); added name rendering
v1.008 (23 Jun 2005):
TWiki:Main.DanielRohde: added new attributes (nwidth,tcwidth,removeatwork,tablecaptionalign,headerformat); performance fixes; allowed digits in month attribute
v1.007 (17 Jun 2005):
TWiki:Main.DanielRohde: personal icon support; new attributes (month,year); icon tooltips with dates/person/location/icon; fixed '-' bug