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:
(not at work; used if you type a location). You can also use other smilies (like :skull:).
To insert vacations into the table, create a bullet list. Three spaces and then a *.
).
Example3: To list that Jill will be in Paris from 10-Sep - 11-Sep 2005 and in Tokyo on 15 Sep 2005
Example4: To list that Eve will be ill from 12-Sep - 20-Sep 2005 with her own 'smily'
Example5: To list that Lisa will by not at work from April to June and the complete December 2005:
Example6: To list in all time table entries that anybody will be not at work on Christmas Day:
(defaults to null).
The syntax follows that of the CalendarPlugin. See
for more details.
| Entry type | Syntax | Example |
| Single entry | * dd MMM yyyy - name | * 01 Jul 2005 - Jane |
* dd MMM yyyy - name - location | * 01 Jul 2005 - Sarah - in Paris |
* dd MMM yyyy - name - location - icon | * 01 Jul 2005 - Eve - ill - :skull: |
| Interval entry | * dd MMM yyyy - dd MMM yyyy - name | * 01 Aug 2005 - 22 Aug 2005 - EvaMaria |
* dd MMM yyyy - dd MMM yyyy - name - location | * 02 Sep 2005 - 10 Sep 2005 - JohnDo - in London |
* dd MMM yyyy - dd MMM yyyy - name - location - icon | * 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 |
| Attribute | Comment | Default / Example |
| Behavior |
| compatmode | if set to "1" all TWiki:Plugins.CalendarPlugin event types are supported (related: compatmodeicon) | compatmode="0" |
| daynames | 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, ...) | year="0" |
| Icons |
| adayofficon | a day off icon | adayofficon=":ok:" |
| compatmodeicon | icon used for TWiki:Plugins.CalendarPlugin event types (only used if compatmode is enabled) | compatmodeicon="8-)" |
| holidayicon | holiday icon | holidayicon="8-)" |
| notatworkicon | 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) | headerformat="<font size=\"-2\">%b<br/>%a<br/>%e</font>" |
| lang | language (related: daynames, monthnames) | lang="English" |
| monthheaderformat | month header format (related: showmonthheader) | monthheaderformat="%B" |
| monthnames | costum 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" |
| name | header content of the first cell header | name="Name" |
| navdays | defines the days to navigate to (default: value of the days attribute) | navdays="30" |
| navenable | enable/disable navigation (1 - enabled; 0 - disabled) | navenable="1" |
| navhome | navigation button to the start date (%d will be replaced with page x days) | navhome="%d" |
| navhometitle | title text (tooltip text) for the navigation button to the start date | navhometitle="Go to the start date" |
| navnext | navigation button to the next navdays days | navnext=">¦" |
| navnexthalf | navigation button to the next navdays/2 days | navnexthalf=">" |
| navnexthalftitle | title text (tooltip text) for the navigation button to the next navdays/2 days (%n will be replaced with the half number of days to show) | navnexttitle="Next %n day(s)" |
| navnexttitle | title text (tooltip text) for the navigation button to the next navdays days (%n will be replaced with the number of days to show) | navnexttitle="Next %n day(s)" |
| navprev | navigation button to the previous navdays days | navprev="<br/>¦<" |
| navprevhalf | navigation button to the previous navdays/2 days | navprevhalf="<" |
| navprevhalftitle | title text (tooltip text) for the navigation button to the previous navdays/2 days (%n will be replaced with the half number of days to show) | navprevtitle="Previous %n day(s)" |
| navprevtitle | title text (tooltip text) for the navigation button to the previous navdays days (%n will be replaced with the number of days to show) | navprevtitle="Previous %n day(s)" |
| nwidth | cell width of the first column | nwidth="120px" |
| tablebgcolor | table background color | tablebgcolor="white" |
| tablecaption | table caption | tablecaption=" " |
| tablecaptionalign | table caption alignment (top, bottom, left, right) | tablecaptionalign="top" |
| tableheadercolor | color of the table header | tableheadercolor="%WEBBGCOLOR%" |
| tcwidth | width of the icon table cells | tcwidth="33px" |
| todaybgcolor | 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%" |
Every attribute of %HOLIDAYLIST% can also be used as plugin setting. You only have to use capital letters.
| Plugin Author: | TWiki:Main.PeterJones, TWiki:Main.DanielRohde |
| Plugin Version: | v1.023 (19 Jan 2008) |
| Change History: | |
| v1.023 (19 Jan 2008) | TWiki:Main.KennethLavrsen: fixed Item5190 - does not like whitespace after the smiley. This makes the plugin work with TWiki 4.2.0 and Wysiwyg |
| v1.022 (18 Jun 2007) | TWiki:Main.DanielRohde: added documentation requested by TWiki:Main.PeterThoeny; fixed type (on=off bug) |
| v1.021 (20 Apr 2007) | 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); |
| v1.020 (21 Sep 2006) | TWiki:Main.DanielRohde: added week attribute requested by TWiki:Main.JanFilipsky; added tooltip to day headers; |
| v1.019 (7 Aug 2006) | TWiki:Main.DanielRohde: improved navigation; fixed %ICON% tag handling bug reported by TWiki:Main.UlfJastrow; |
| v1.018 (25 Jul 2006) | TWiki:Main.DanielRohde: fixed periodic event bug; added navigation feature |
| v1.017 (31 May 2006) | TWiki:Main.DanielRohde: fixed minor bug (periodic repeater) |
| v1.016 (27 Apr 2006) | TWiki:Main.DanielRohde: fixed some major bugs: deep recursion bug reported by TWiki:Main.ChrisHausen; exception handling bug (concerns Dakar) |
| v1.015 (9 Feb 2006) | TWiki:Main.DanielRohde: added class attribute (holidaylistPluginTable) to table tag for stylesheet support (thanx TWiki:Main.HaraldJoerg and TWiki:Main.ArthurClemens); fixed mod_perl preload bug (removed 'use warnings;') reported by TWiki:Main.KennethLavrsen |
| v1.014 (23 Jan 2006) | TWiki:Main.DanielRohde: incorporated documentation fixes by TWiki:Main.KennethLavrsen (Bugs:Item1440) |
| v1.013 (8 Nov 2005) | TWiki:Main.DanielRohde: added Perl strict pragma; |
| v1.012 (5 Sep 2005): | TWiki:Main.DanielRohde: added public holiday support requested by TWiki:Main.IlltudDaniel; improved documentation; improved forced link handling in alt/title attributes of img tags; fixed documentation bug reported by TWiki:Main.FranzJosefSilli |
| v1.011 (11 Jul 2005): | 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 |
| v1.006 (16 Jun 2005): | TWiki:Main.DanielRohde: added new features (location support; today(fg/bg)color) |
| v1.005 (16 Jun 2005): | TWiki:Main.DanielRohde: added new features (start date support; weekendbgcolor); fixed documentation bugs; |
| v1.004 (14 Jun 2005): | TWiki:Main.DanielRohde: some performance improvements; code cleanup; documentation |
| v1.003 (13 Jun 2005): | TWiki:Main.DanielRohde: fix plugin preference handling; rename some subroutines |
| v1.002 (13 Jun 2005): | TWiki:Main.DanielRohde: renders some options; fixes some documentation bugs and a white space bug |
| v1.001 (10 Jun 2005): | TWiki:Main.DanielRohde: A complete reimplementation with many bug fixes and some new features. |
| v1.021 (01 Jun 2005): | TWiki:Main.PeterJones: Initial version |
| CPAN Dependencies: | required: CPAN:Date::Calc optional: CPAN:HTML::Entities |
| Other Dependencies: | SmiliesPlugin |
| Perl Version: | 5.0 and up |
| TWiki:Plugins/Benchmark: | GoodStyle 94%, FormattedSearch 98%, HolidaylistPlugin 86% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/HolidaylistPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/HolidaylistPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/HolidaylistPluginAppraisal |