data/TWiki/TablePlugin.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 head	1.26;
       
     2 access;
       
     3 symbols;
       
     4 locks; strict;
       
     5 comment	@# @;
       
     6 
       
     7 
       
     8 1.26
       
     9 date	2008.01.22.03.21.23;	author TWikiContributor;	state Exp;
       
    10 branches;
       
    11 next	1.25;
       
    12 
       
    13 1.25
       
    14 date	2007.01.16.04.12.01;	author TWikiContributor;	state Exp;
       
    15 branches;
       
    16 next	1.24;
       
    17 
       
    18 1.24
       
    19 date	2006.04.01.05.55.33;	author TWikiContributor;	state Exp;
       
    20 branches;
       
    21 next	1.23;
       
    22 
       
    23 1.23
       
    24 date	2006.02.01.12.01.23;	author TWikiContributor;	state Exp;
       
    25 branches;
       
    26 next	1.22;
       
    27 
       
    28 1.22
       
    29 date	2004.08.02.05.08.17;	author PeterThoeny;	state Exp;
       
    30 branches;
       
    31 next	1.21;
       
    32 
       
    33 1.21
       
    34 date	2004.03.21.09.05.14;	author PeterThoeny;	state Exp;
       
    35 branches;
       
    36 next	1.20;
       
    37 
       
    38 1.20
       
    39 date	2004.01.02.03.18.16;	author PeterThoeny;	state Exp;
       
    40 branches;
       
    41 next	1.19;
       
    42 
       
    43 1.19
       
    44 date	2003.05.25.10.31.00;	author PeterThoeny;	state Exp;
       
    45 branches;
       
    46 next	1.18;
       
    47 
       
    48 1.18
       
    49 date	2003.05.25.03.32.00;	author PeterThoeny;	state Exp;
       
    50 branches;
       
    51 next	1.17;
       
    52 
       
    53 1.17
       
    54 date	2003.05.03.07.10.22;	author PeterThoeny;	state Exp;
       
    55 branches;
       
    56 next	1.16;
       
    57 
       
    58 1.16
       
    59 date	2002.12.17.22.38.12;	author PeterThoeny;	state Exp;
       
    60 branches;
       
    61 next	1.15;
       
    62 
       
    63 1.15
       
    64 date	2002.12.15.09.34.00;	author PeterThoeny;	state Exp;
       
    65 branches;
       
    66 next	1.14;
       
    67 
       
    68 1.14
       
    69 date	2002.12.10.00.11.00;	author PeterThoeny;	state Exp;
       
    70 branches;
       
    71 next	1.13;
       
    72 
       
    73 1.13
       
    74 date	2002.06.05.06.56.51;	author PeterThoeny;	state Exp;
       
    75 branches;
       
    76 next	1.12;
       
    77 
       
    78 1.12
       
    79 date	2002.03.13.06.30.00;	author PeterThoeny;	state Exp;
       
    80 branches;
       
    81 next	1.11;
       
    82 
       
    83 1.11
       
    84 date	2002.03.13.02.39.00;	author PeterThoeny;	state Exp;
       
    85 branches;
       
    86 next	1.10;
       
    87 
       
    88 1.10
       
    89 date	2002.03.07.22.55.00;	author PeterThoeny;	state Exp;
       
    90 branches;
       
    91 next	1.9;
       
    92 
       
    93 1.9
       
    94 date	2002.01.05.08.17.00;	author PeterThoeny;	state Exp;
       
    95 branches;
       
    96 next	1.8;
       
    97 
       
    98 1.8
       
    99 date	2001.12.09.09.45.34;	author PeterThoeny;	state Exp;
       
   100 branches;
       
   101 next	1.7;
       
   102 
       
   103 1.7
       
   104 date	2001.12.07.07.28.00;	author PeterThoeny;	state Exp;
       
   105 branches;
       
   106 next	1.6;
       
   107 
       
   108 1.6
       
   109 date	2001.12.04.02.26.00;	author PeterThoeny;	state Exp;
       
   110 branches;
       
   111 next	1.5;
       
   112 
       
   113 1.5
       
   114 date	2001.11.29.08.12.31;	author PeterThoeny;	state Exp;
       
   115 branches;
       
   116 next	1.4;
       
   117 
       
   118 1.4
       
   119 date	2001.11.16.09.34.48;	author PeterThoeny;	state Exp;
       
   120 branches;
       
   121 next	1.3;
       
   122 
       
   123 1.3
       
   124 date	2001.11.16.03.19.50;	author PeterThoeny;	state Exp;
       
   125 branches;
       
   126 next	1.2;
       
   127 
       
   128 1.2
       
   129 date	2001.11.14.03.13.00;	author PeterThoeny;	state Exp;
       
   130 branches;
       
   131 next	1.1;
       
   132 
       
   133 1.1
       
   134 date	2001.11.11.09.08.09;	author PeterThoeny;	state Exp;
       
   135 branches;
       
   136 next	;
       
   137 
       
   138 
       
   139 desc
       
   140 @none
       
   141 @
       
   142 
       
   143 
       
   144 1.26
       
   145 log
       
   146 @buildrelease
       
   147 @
       
   148 text
       
   149 @%META:TOPICINFO{author="TWikiContributor" date="1191730164" format="1.0" version="26"}%
       
   150 ---+ Table Plugin
       
   151 
       
   152 Gives extra control of table display:
       
   153 	* Allows sorting
       
   154 	* Changing table properties like border width, cell spacing and cell padding
       
   155 	* Changing background color and text color for header cells
       
   156 	* Changing background color and text color for data cells - colors can _alternate_
       
   157 	* Table attributes can be set and overridden in this order:
       
   158 		* Default =TABLEATTRIBUTES= Plugin setting in this topic.
       
   159 		* A =TABLEATTRIBUTES= preferences setting on site-level (%TWIKIWEB%.TWikiPreferences) or web-level (any WebPreferences), e.g.
       
   160 			* =Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" ...=
       
   161 		* Before a table using =%<nop>TABLE{...}%=
       
   162    * Row spans
       
   163 
       
   164 ---++ Sorting
       
   165 
       
   166 Click on column heading text to sort by a column.  Initial column will be sorted in descending order, click again to get ascending order.  The type of data in the cell is determined automatically:
       
   167 
       
   168 	* date if format is:
       
   169 		* dd MMM YYYY - hh:mm (MMM is Jan, Feb, etc.)
       
   170 		* dd-MMM-YY or dd-MMM-YYYY (can be / or space in place of -) (MMM is Jan, Feb, etc)
       
   171 	* number is digits, with optional decimal point
       
   172 	* otherwise treated as text
       
   173 
       
   174 ---++ Row spans
       
   175 
       
   176 Table cells with a single caret indicate follow-up rows of multi-row spans. For example,
       
   177 <table width="100%"><tr><td>
       
   178 <verbatim>
       
   179 | One One | One Two | One Three |
       
   180 | ^ | Two Two | Two Three |
       
   181 | Three One | ^ | Three Three |
       
   182 </verbatim>
       
   183 </td><td align="right">
       
   184 | One One | One Two | One Three |
       
   185 | ^ | Two Two | Two Three |
       
   186 | Three One | ^ | Three Three |
       
   187 </td></tr></table>
       
   188 
       
   189 ---++ <nop>%TOPIC% Global Settings
       
   190 
       
   191 Plugin settings are stored as preferences variables. To reference
       
   192 a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, for example, ==%<nop>INTERWIKIPLUGIN_SHORTDESCRIPTION%==
       
   193 
       
   194 	* One line description, shown in the %TWIKIWEB%.TextFormattingRules topic:
       
   195 		* Set SHORTDESCRIPTION = Control attributes of tables and sorting of table columns
       
   196 
       
   197 	* Set DEBUG to 1 to get debug messages in =data/debug.txt=.  Default: =0=
       
   198 		* Set DEBUG = 0
       
   199 
       
   200 	* Make all tables in a topic sortable. If this is set to =all=, all tables that have a header row (including those that do not have %TABLE before them) will be made sortable. If set to =none=, only tables with %TABLE will be sortable. Topic rendering is faster if this is set to =none=.
       
   201 		* #Set SORT = none
       
   202 		* Set SORT = all
       
   203 
       
   204 	* Default table attributes:
       
   205 		* Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="0" valign="top" headercolor="#ffffff" headerbg="#687684" headerbgsorted="#334455" databg="#ffffff,#edf4f9" databgsorted="#f1f7fc,#ddebf6" tablerules="rows"
       
   206 
       
   207 ---++ Table Attributes
       
   208 
       
   209 Attributes are defined as a =TABLEATTRIBUTES= Plugin setting in this topic, a =TABLEATTRIBUTES= preferences setting, or on line before the table using =%<nop>TABLE{...}%=:
       
   210 %INCLUDE{"%TWIKIWEB%.VarTABLE" section="table_attributes"}%
       
   211 
       
   212 The =%<nop>TABLE{...}%= settings override =TABLEATTRIBUTES= preferences settings, which override the =TABLEATTRIBUTES= Plugin settings. 
       
   213 
       
   214 The setting =disableallsort= is normally not used as a TABLE or TABLEATTRIBUTES setting. Plugins such as EditTablePlugin dynamically sets =disableallsort= to disable sorting while editing a table. For this to work it is important that EditTablePlugin runs before TablePlugin, which is the default. The setting =sort= can be overwritten by a URL parameter or hidden formfield of the same name. Plugins such as EditTablePlugin can use this to disable table header sorting while in edit mode.
       
   215 
       
   216 ---++ Examples
       
   217 
       
   218 ---+++ Use of %<nop>TABLE{...}%
       
   219 
       
   220 Line before table: =%<nop>TABLE{ sort="on" tableborder="0" cellpadding="4" cellspacing="3" cellborder="0" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%=
       
   221 
       
   222 %TABLE{ sort="on" tableborder="0" cellpadding="4" cellspacing="3" cellborder="0" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%
       
   223 | *Table with two Header Rows and Footer Row* ||||||
       
   224 | *Num* | *Status* | *Action* | *Who* | *When* | *Progress* |
       
   225 | 1 | C | Chose new colours | John | 1-Dec-02 | |
       
   226 | 2 | X | Release | John | 1-Apr-02 | |
       
   227 | 3 |	| Get feedback | Anne | 1-Feb-02 | |
       
   228 | 12 | C | Spec error handling | Jack | 1-Dec-02 | |
       
   229 | 5 |	| Abc | John | | |
       
   230 | *Num* | *Status* | *Action* | *Who* | *When* | *Progress* |
       
   231 
       
   232 ---+++ Table with 4 digit year dates and no use of %<nop>TABLE{...}%
       
   233 
       
   234 | *When* |
       
   235 | 1-Jan-2004 |
       
   236 | 1-Jan-2003 |
       
   237 | 2-Jan-2005 |
       
   238 
       
   239 
       
   240 ---++ !TablePlugin and CSS
       
   241 Information for programmers.
       
   242 
       
   243 !TablePlugin implements the following precedence:
       
   244    * the =TABLEATTRIBUTE= settings only write html styling, no CSS
       
   245    * the =TABLEATTRIBUTE= settings can be overridden by a skin's CSS
       
   246    * the =TABLE= tag attributes are converted to CSS styling, written in the head; these override any skin's CSS
       
   247     
       
   248 ---+++ CSS written by !TablePlugin
       
   249 |=.twikiTable=  |The table  |
       
   250 |=.twikiSortedCol=  |A sorted column  |
       
   251 |=.twikiSortedAscendingCol=  |Sorted column, ascending  |
       
   252 |=.twikiSortedDescendingCol=  |Sorted column, descending  |
       
   253 |=.tableSortIcon=  |The sort icon holder (span)  |
       
   254 |=.twikiFirstCol=  |The first column  |
       
   255 |=.twikiTableEven= |Even numbered rows  |
       
   256 |=.twikiTableOdd= |Odd numbered rows  |
       
   257 |=.twikiTableCol= + column number  | Unique column identifier, for instance: =twikiTableCol0= |
       
   258 |=.twikiTableRow= + type + row number | Unique row identifier, for instance: =twikiTableRowdataBg0= |
       
   259 
       
   260 
       
   261 ---++ Plugin Installation Instructions
       
   262 This plugin is pre-installed with your TWiki release. You should not have to install it other than to do an upgrade.
       
   263 
       
   264 	* Download the ZIP file from the Plugin web (see below)
       
   265 	* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
       
   266 	  | *File:* | *Description:* |
       
   267 	  | ==data/TWiki/%TOPIC%.txt== | Plugin topic |
       
   268 	  | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module |
       
   269 	  | ==lib/TWiki/Plugins/%TOPIC%/Core.pm== | Plugin Perl module |
       
   270 	* (Dakar) Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section.
       
   271 	* Test if the plugin is correctly installed:
       
   272 		* Check above example if the table renders as expected
       
   273 		* Try click on heading to sort.  Other tables should also be sortable
       
   274 
       
   275 ---++ Plugin Info
       
   276 
       
   277 |  Plugin Author: | TWiki:Main/JohnTalintyre, TWiki:Main/PeterThoeny |
       
   278 |  Copyright: | &copy; 2001-2007, TWiki:Main/JohnTalintyre, Peter@@Thoeny.org ([[http://www.twiki.net/][TWIKI.NET]]), TWiki Contributors |
       
   279 |  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
       
   280 |  Plugin Version: | 1.032 (22 Dec 2007) |
       
   281 |  Change History: | <!-- specify latest version first -->&nbsp; |
       
   282 |  16 Dec 2007 | 1.030: Kenneth Lavrsen: Fixed the problem of tables being sorted by by TablePlugin while the table is being edited by plugins such as EditTablePlugin. This required adding a new attribute =disableallsort= so plugins such as EditTablePlugin can temporarily disable all sorting for a table. Additionally the CGI variable (URL parameter or hidden formfield) =sort= can be set to "off" which disables all header sorting in the topic. This is used by plugins such as EditTablePlugin to disable the sorting by clicking header fields during editing of tables. Ref: TWikibug:Item5135 and TWikibug:Item2690. |
       
   283 |  03 Dec 2007 | Arthur Clemens: Fixed rendering and order of html elements =thead=, =tfoot= and =tbody=; corrected =id= parameter. |
       
   284 |  24 Nov 2007 | Arthur Clemens: Fixed sorting of columns with only icons; also removed TWiki formatting before sorting. |
       
   285 |  06 Oct 2007 | 15180: PTh: Added %TWIKIWEB%.VarTABLE to have it listed in %TWIKIWEB%.TWikiVariables |
       
   286 |  27 Jun 2007 | 1.024 - 1.027 Various small bug fixes. |
       
   287 |  24 Jun 2007 | 1.023: Arthur Clemens: Inline styles are now written to the head; updated default sort icons (from %TWIKIWEB%.TWikiDocGraphics). |
       
   288 |  23 Jun 2007 | 1.022: Arthur Clemens: Fixed styling of param =tablerules= on Internet Explorer. |
       
   289 |  23 May 2007 | 1.021: Michael Daum: Fixed css attribute priority to cooperate nicely with skin themes. |
       
   290 |  27 Dec 2006 | 1.020: Kenneth Lavrsen: Fixed initsort so all tables can be initsorted and not only the first. When you sort a table by clicking on the header of a column the table gets sorted accordingly. When you click the header of another table the previously sorted table goes back being sorted as specified by initsort. |
       
   291 |  13 Dec 2006 | 1.019: Arthur Clemens: Prevent sorting of columns that do no exist.  |
       
   292 |  02 Dec 2006 | 1.018: Arthur Clemens: Data rows now start with first =datacolor= and =databgcolor=.  |
       
   293 |  26 Nov 2006 | 1.017: Arthur Clemens: Better support for =tablerules=.  |
       
   294 |  24 Nov 2006 | 1.016: Arthur Clemens: Added new attribute =cellborder=.  |
       
   295 |  25 Oct 2006 | 1.015: Arthur Clemens: Added support for background colors of sorted column. Columns can be unsorted - sorting order is now: sort ascending, sort descending, unsort. Added attributes =headervalign= and =datavalign=. |
       
   296 |  16 Aug 2006 | Michael Daum: Added CSS support for even/odd table rows |
       
   297 |  13 Dec 2005 | Arthur Clemens: Added support for =id=, =summary= and =caption= |
       
   298 |  05 Mar 2005 | 1.014: Crawford Currie eliminated deprecated handlers for Dakar |
       
   299 |  01 Aug 2004 | Arthur Clemens: Added CSS support for first column and ascending/descending table headers |
       
   300 |  21 Mar 2004 | PTh: Internal change: Fixed reference to unofficial variable |
       
   301 |  01 Jan 2004 | PTh: Alternating data row colors restart again after each header row |
       
   302 |  01 Dec 2003 | PTh: Fixed error when footerrows was specified on an empty table, contributed by TWiki:Main/PaulineCheung |
       
   303 |  24 May 2003 | PTh: New =&#124;^&#124;= rule for multi row span (TWiki:Main/WalterMundt); added tableframe and tablerules (TWiki:Main/JohannesMartin); ignore columnwidths for multi column span; validate headerrows and footerrows (TWiki:Main/DarrylGreen); fixed link color problem and up/down icon color problem for dark header background |
       
   304 |  17 Dec 2002 | PTh: Removed individual table Plugin settings; added TABLEATTRIBUTES Plugins setting and TABLEATTRIBUTES preferences setting |
       
   305 |  15 Dec 2002 | PTh: Added headerrows and footerrows params (TWiki:Main/DarrylGreen, TWiki:Main/WoutMertens); added tablewidth and columnwidths params (TWiki:Main/ThorstenSommermann) |
       
   306 |  09 Dec 2002 | PTh: Added headercolor and datacolor parameters |
       
   307 |  05 Jun 2002 | PTh: Added "none" value to databg parameter (suggested by TWiki:Main/TaitCyrus); fixed sorting by stripping HTML tags, removing links and making sort ignore case (suggested by TWiki:Main/ShawnBradford) |
       
   308 |  13 Mar 2002 | PTh: Added TWiki:Main/ShawnBradford 's initsort and initdirection |
       
   309 |  12 Mar 2002 | PTh: Added valign, headeralign and dataalign; fixed bug of swapped cellpadding/cellspacing; fixed warning of uninitialized value |
       
   310 |  05 Jan 2002 | PTh: Fixed sorting bug of cells with leading white space  |
       
   311 |  06 Dec 2001 | PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more |
       
   312 |  29 Nov 2001 | PTh: Fixed Perl warnings |
       
   313 |  16 Nov 2001 | PTh: Added table border, cell spacing, cell padding, gif files |
       
   314 |  07 Oct 2001 | JT: Initial version |
       
   315 |  CPAN Dependencies: | none |
       
   316 |  Other Dependencies: | none |
       
   317 |  Perl Version: | 5.0 |
       
   318 |  Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
       
   319 |  Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
       
   320 |  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal |
       
   321 
       
   322 __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins, %TWIKIWEB%.StandardColors
       
   323 @
       
   324 
       
   325 
       
   326 1.25
       
   327 log
       
   328 @buildrelease
       
   329 @
       
   330 text
       
   331 @d1 1
       
   332 a1 2
       
   333 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="25"}%
       
   334 
       
   335 d57 1
       
   336 a57 3
       
   337 		* Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="0" valign="top" headeralign="center" headercolor="#ffffff" headerbg="#6b7f93" headerbgsorted="#334455" headercolor="#ffffff" databg="#ffffff,#edf4f9" databgsorted="#f5f5f5,#dce7ee"
       
   338 		* Classic skin table attributes:
       
   339 			* #Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="1" headerbg="#99cccc" databg="#ffffff,#ffffcc"
       
   340 d62 1
       
   341 d64 1
       
   342 a64 28
       
   343 | *Argument*       | *Comment*  | *Default&nbsp;value*  | *Example*  |
       
   344 | =sort=           | Set table sorting ="on"= or ="off"=. | <span class="twikiGrayText">unspecified</span> | =sort="on"= |
       
   345 | =initsort=       | Column to sort initially (="1"= to number of columns). | <span class="twikiGrayText">unspecified</span> | =initsort="2"= |
       
   346 | =initdirection=  | Initial sorting direction for =initsort=, set to  ="up"= (descending) or ="down"= (ascending). | <span class="twikiGrayText">unspecified</span> | =initdirection="up"= |
       
   347 | =headerbg=       | Header cell background colour. | ="#6b7f93"= | =headerbg="#999999"= |
       
   348 | =headerbgsorted= | Header cell background colour of a sorted column. | the value of =headerbg= | =headerbgsorted="#32596c"= |
       
   349 | =headercolor=    | Header cell text colour. | ="#ffffff"= | =headercolor="#0000cc"= |
       
   350 | =databg=	       | Data cell background colour, a comma separated list. Specify ="none"= for no colour, that is to use the colour/background of the page the table is on. | ="#edf4f9,#ffffff"= | =databg="#f2f2f2,#ffffff"= |
       
   351 | =databgsorted=   | Data cell background colour of a sorted column; see =databg=. | the values of =databg= | =databgsorted="#d4e8e4,#e5f5ea"= |
       
   352 | =datacolor=      | Data cell text colour, a comma separated list. | <span class="twikiGrayText">unspecified</span> | =datacolor="#0000CC, #000000"= |
       
   353 | =tableborder=    | Table border width (pixels). | ="1"= | =tableborder="2"= |
       
   354 | =tableframe=     | Table frame, set to ="void"= (no sides), ="above"= (the top side only), ="below"= (the bottom side only), ="hsides"= (the top and bottom sides only), ="lhs"= (the left-hand side only), ="rhs"= (the right-hand side only), ="vsides"= (the right and left sides only), ="box"= (all four sides), ="border"= (all four sides). | <span class="twikiGrayText">unspecified</span> | =tableframe="hsides"= |
       
   355 | =tablerules=     | Table rules, set to ="none"= (no rules), ="groups"= (rules will appear between row groups and column groups only), ="rows"= (rules will appear between rows only), ="cols"= (rules will appear between columns only), ="all"= (rules will appear between all rows and columns). | <span class="twikiGrayText">unspecified</span>  | =tablerules="rows"= |		  
       
   356 | =cellpadding=    | Cell padding (pixels). | ="0"= | =cellpadding="0"= |
       
   357 | =cellspacing=    | Cell spacing (pixels). | ="0"= | =cellspacing="3"= |
       
   358 | =cellborder=     | Cell border width (pixels). | <span class="twikiGrayText">unspecified</span> | =cellborder="0"= |
       
   359 | =valign=         | Vertical alignment of cells and headers, set to ="top"=, ="middle"=, ="bottom"= or ="baseline"=. | <span class="twikiGrayText">unspecified</span>  | =valign="top"= |
       
   360 | =headervalign=   | Vertical alignment of header cells; overrides =valign=. | <span class="twikiGrayText">unspecified</span>  | =headervalign="top"= |
       
   361 | =datavalign=     | Vertical alignment of data cells; overrides =valign=. | <span class="twikiGrayText">unspecified</span>  | =datavalign="top"= |
       
   362 | =headeralign=    | Header cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings. | <span class="twikiGrayText">unspecified</span>  | =headeralign="left,right"= |
       
   363 | =dataalign=      | Data cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings. | <span class="twikiGrayText">unspecified</span>  | =dataalign="center"= |
       
   364 | =tablewidth=     | Table width: Percentage of window width, or absolute pixel value. | <span class="twikiGrayText">unspecified</span>  | =tablewidth="100%"= |
       
   365 | =columnwidths=   | Column widths: Comma delimited list of column widths, percentage or absolute pixel value. | <span class="twikiGrayText">unspecified</span>  | =columnwidths="80%,20%"= |
       
   366 | =headerrows=     | Number of header rows to exclude from sort. | ="1"=  | =headerrows="1"= |
       
   367 | =footerrows=     | Number of footer rows to exclude from sort. | ="0"=  | =footerrows="1"= |
       
   368 | =id=             | Table identifier string. | <span class="twikiGrayText">unspecified</span> | =id="userTable"= |
       
   369 | =summary=        | Table summary used by screenreaders: A summary of what the table presents. It should provide an orientation for someone who listens to the table. | <span class="twikiGrayText">unspecified</span> | =summary="List of subscribed users"= |
       
   370 | =caption=        | Table caption: A title that will be displayed just above the table.| <span class="twikiGrayText">unspecified</span> | =caption="Users"= |
       
   371 d66 1
       
   372 a66 1
       
   373 The =%<nop>TABLE{...}%= settings override =TABLEATTRIBUTES= preferences settings, which override the =TABLEATTRIBUTES= Plugin settings. 
       
   374 d91 22
       
   375 a119 1
       
   376 	  | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository |
       
   377 d121 1
       
   378 a121 3
       
   379 	  | ==pub/TWiki/%TOPIC%/diamond.gif== | Diamond symbol |
       
   380 	  | ==pub/TWiki/%TOPIC%/down.gif== | Down arrow |
       
   381 	  | ==pub/TWiki/%TOPIC%/up.gif== | Up arrow |
       
   382 d130 3
       
   383 a132 1
       
   384 |  Plugin Version: | 1.020 |
       
   385 d134 8
       
   386 d172 1
       
   387 a174 7
       
   388 
       
   389 
       
   390 
       
   391 
       
   392 %META:FILEATTACHMENT{name="up.gif" attr="" comment="Up arrow" date="1070351625" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\up.gif" size="867" user="TWikiContributor" version="1.1"}%
       
   393 %META:FILEATTACHMENT{name="down.gif" attr="" comment="Down arrow" date="1070351653" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\down.gif" size="867" user="TWikiContributor" version="1.1"}%
       
   394 %META:FILEATTACHMENT{name="diamond.gif" attr="" comment="Diamond symbol" date="1070351672" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\diamond.gif" size="881" user="TWikiContributor" version="1.1"}%
       
   395 @
       
   396 
       
   397 
       
   398 1.24
       
   399 log
       
   400 @buildrelease
       
   401 @
       
   402 text
       
   403 @d1 1
       
   404 a1 2
       
   405 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="24"}%
       
   406 
       
   407 d22 2
       
   408 a23 3
       
   409 		* dd MMM YYY - hh:mm
       
   410 		* dd-MMM-YY or dd-MMM-YYYY (can be / or space in place of -)
       
   411 		* MMM is Jan, Feb, etc
       
   412 d58 1
       
   413 a58 1
       
   414 		* Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" cellspacing="1" headerbg="#dadada" headercolor="#000000" databg="#eaeaea, #ffffff"
       
   415 d60 1
       
   416 a60 1
       
   417 			* #Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="1" headerbg="#99CCCC" databg="#FFFFCC, #FFFFFF"
       
   418 d66 28
       
   419 a93 23
       
   420 | *Argument* | *Comment* | *Example* |
       
   421 | =sort=	  | Set table sorting ="on"= or ="off"= | =sort="on"= |
       
   422 | =initsort= | Column to sort initially (="1"= to number of columns) | =initsort="2"= |
       
   423 | =initdirection= | Initial sorting direction for =initsort=, set to  ="up"= or ="down"= | =initdirection="up"= |
       
   424 | =headerbg= | Header cell background colour. Choose one of the %TWIKIWEB%.StandardColors | =headerbg="#99CCCC"= |
       
   425 | =headercolor= | Header cell text colour | =headercolor="#0000CC"= |
       
   426 | =databg=	| Data cell background colour, a comma separated list. Specify ="none"= for no colour, that is to use the colour/background of the page the table is on. | =databg="#C8CB8F, #DBDDB5"= |
       
   427 | =datacolor= | Data cell text colour, a comma separated list | =datacolor="#0000CC, #000000"= |
       
   428 | =tableborder= | Table border width (pixels) | =tableborder="2"= |
       
   429 | =tableframe= | Table frame, set to ="void"= (no sides), ="above"= (the top side only), ="below"= (the bottom side only), ="hsides"= (the top and bottom sides only), ="lhs"= (the left-hand side only), ="rhs"= (the right-hand side only), ="vsides"= (the right and left sides only), ="box"= (all four sides), ="border"= (all four sides); default ="void"= | =tableframe="hsides"= |
       
   430 | =tablerules= | Table rules, set to ="none"= (no rules), ="groups"= (rules will appear between row groups and column groups only), ="rows"= (rules will appear between rows only), ="cols"= (rules will appear between columns only), ="all"= (rules will appear between all rows and columns); default ="none"= | =tablerules="rows"= |		  
       
   431 | =cellpadding= | Cell padding (pixels) | =cellpadding="0"= |
       
   432 | =cellspacing= | Cell spacing (pixels) | =cellspacing="3"= |
       
   433 | =valign= | Vertical alignment of cells, set to ="top"=, ="middle"=, ="bottom"= or ="baseline"= | =valign="top"= |
       
   434 | =headeralign= | Header cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings | =headeralign="left, right"= |
       
   435 | =dataalign= | Data cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings | =dataalign="center"= |
       
   436 | =tablewidth= | Table width: Percentage of window width, or absolute pixel value. Default is unspecified. | =tablewidth="100%"= |
       
   437 | =columnwidths= | Column widths: Comma delimited list of column widths, percentage or absolute pixel value. Default is unspecified. | =columnwidths="80%, 20%"= |
       
   438 | =headerrows= | Number of header rows to exclude from sort; default ="1"= | =headerrows="1"= |
       
   439 | =footerrows= | Number of footer rows to exclude from sort; default ="0"= | =footerrows="1"= |
       
   440 | =id= | Table identifier string. Default is unspecified. | =id="userTable"= |
       
   441 | =summary= | Table summary used by screenreaders: A summary of what the table presents. It should provide an orientation for someone who listens to the table. Default is unspecified. | =summary="List of subscribed users"= |
       
   442 | =caption= | Table caption: A title that will be displayed just above the table. Default is unspecified. | =caption="Users"= |
       
   443 d101 1
       
   444 a101 1
       
   445 Line before table: =%<nop>TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%=
       
   446 d103 1
       
   447 a103 1
       
   448 %TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%
       
   449 d140 1
       
   450 a140 1
       
   451 |  Plugin Version: | 1.014 |
       
   452 d142 25
       
   453 a166 18
       
   454 |  13 Dec 2005 | AC: Added support for id, summary and caption |
       
   455 |  5 Mar 2005 | 1.014: Crawford Currie eliminated deprecated handlers for Dakar |
       
   456 |  01 Aug 2004: | AC: Added CSS support for first column and ascending/descending table headers |
       
   457 |  21 Mar 2004: | PTh: Internal change: Fixed reference to unofficial variable |
       
   458 |  01 Jan 2004: | PTh: Alternating data row colors restart again after each header row |
       
   459 |  01 Dec 2003: | PTh: Fixed error when footerrows was specified on an empty table, contributed by TWiki:Main/PaulineCheung |
       
   460 |  24 May 2003: | PTh: New =&#124;^&#124;= rule for multi row span (TWiki:Main/WalterMundt); added tableframe and tablerules (TWiki:Main/JohannesMartin); ignore columnwidths for multi column span; validate headerrows and footerrows (TWiki:Main/DarrylGreen); fixed link color problem and up/down icon color problem for dark header background |
       
   461 |  17 Dec 2002: | PTh: Removed individual table Plugin settings; added TABLEATTRIBUTES Plugins setting and TABLEATTRIBUTES preferences setting |
       
   462 |  15 Dec 2002: | PTh: Added headerrows and footerrows params (TWiki:Main/DarrylGreen, TWiki:Main/WoutMertens); added tablewidth and columnwidths params (TWiki:Main/ThorstenSommermann) |
       
   463 |  09 Dec 2002: | PTh: Added headercolor and datacolor parameters |
       
   464 |  05 Jun 2002: | PTh: Added "none" value to databg parameter (suggested by TWiki:Main/TaitCyrus); fixed sorting by stripping HTML tags, removing links and making sort ignore case (suggested by TWiki:Main/ShawnBradford) |
       
   465 |  13 Mar 2002: | PTh: Added TWiki:Main/ShawnBradford 's initsort and initdirection |
       
   466 |  12 Mar 2002: | PTh: Added valign, headeralign and dataalign; fixed bug of swapped cellpadding/cellspacing; fixed warning of uninitialized value |
       
   467 |  05 Jan 2002: | PTh: Fixed sorting bug of cells with leading white space  |
       
   468 |  06 Dec 2001: | PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more |
       
   469 |  29 Nov 2001: | PTh: Fixed Perl warnings |
       
   470 |  16 Nov 2001: | PTh: Added table border, cell spacing, cell padding, gif files |
       
   471 |  07 Oct 2001: | JT: Initial version |
       
   472 @
       
   473 
       
   474 
       
   475 1.23
       
   476 log
       
   477 @buildrelease
       
   478 @
       
   479 text
       
   480 @d1 1
       
   481 a1 1
       
   482 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="23"}%
       
   483 d16 1
       
   484 a16 1
       
   485 	* Row spans
       
   486 @
       
   487 
       
   488 
       
   489 1.22
       
   490 log
       
   491 @none
       
   492 @
       
   493 text
       
   494 @d1 3
       
   495 a3 1
       
   496 %META:TOPICINFO{author="PeterThoeny" date="1091423297" format="1.0" version="1.22"}%
       
   497 d16 1
       
   498 d29 15
       
   499 d55 2
       
   500 a56 2
       
   501 	* Make sortable:
       
   502 		* #Set SORT = attachments
       
   503 a57 1
       
   504 		* #Set SORT = none
       
   505 d60 3
       
   506 a62 2
       
   507 		* Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="1" headerbg="#99CCCC" databg="#FFFFCC, #FFFFFF"
       
   508 
       
   509 d84 2
       
   510 a85 2
       
   511 | =tablewidth= | Table width: Percentage of window width, or absolute pixel value. Default is unspecified | =tablewidth="100%"= |
       
   512 | =columnwidths= | Column widths: Comma delimited list of column widths, percentage or absolute pixel value. Default is unspecified | =columnwidths="80%, 20%"= |
       
   513 d88 3
       
   514 d98 1
       
   515 a98 1
       
   516 Line before table: =%<nop>TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" headerrows="2" footerrows="1" }%=
       
   517 d100 1
       
   518 a100 1
       
   519 %TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" headerrows="2" footerrows="1" }%
       
   520 d118 1
       
   521 a118 2
       
   522 
       
   523 *Note:* You do not need to install anything on the browser to use this plugin. Below installation instructions are for the administrator who needs to install this plugin on the TWiki server.
       
   524 d129 1
       
   525 d137 1
       
   526 a137 1
       
   527 |  Plugin Version: | 01 Aug 2004 |
       
   528 d139 2
       
   529 a164 2
       
   530 -- TWiki:Main/JohnTalintyre - 07 Oct 2001 <br />
       
   531 -- TWiki:Main/PeterThoeny - 01 Aug 2004 <br />
       
   532 d166 5
       
   533 a170 3
       
   534 %META:FILEATTACHMENT{name="up.gif" attr="" comment="Up arrow" date="1070351625" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\up.gif" size="867" user="PeterThoeny" version="1.1"}%
       
   535 %META:FILEATTACHMENT{name="down.gif" attr="" comment="Down arrow" date="1070351653" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\down.gif" size="867" user="PeterThoeny" version="1.1"}%
       
   536 %META:FILEATTACHMENT{name="diamond.gif" attr="" comment="Diamond symbol" date="1070351672" path="C:\Data\MyTWiki\Plugins\TablePlugin\pub\TWiki\TablePlugin\diamond.gif" size="881" user="PeterThoeny" version="1.1"}%
       
   537 @
       
   538 
       
   539 
       
   540 1.21
       
   541 log
       
   542 @none
       
   543 @
       
   544 text
       
   545 @d1 144
       
   546 a144 142
       
   547 %META:TOPICINFO{author="PeterThoeny" date="1079859914" format="1.0" version="1.21"}%
       
   548 ---+ Table Plugin
       
   549 
       
   550 Gives extra control of table display:
       
   551 	* Allows sorting
       
   552 	* Changing table properties like border width, cell spacing and cell padding
       
   553 	* Changing background color and text color for header cells
       
   554 	* Changing background color and text color for data cells - colors can _alternate_
       
   555 	* Table attributes can be set and overridden in this order:
       
   556 		* Default =TABLEATTRIBUTES= Plugin setting in this topic.
       
   557 		* A =TABLEATTRIBUTES= preferences setting on site-level (%TWIKIWEB%.TWikiPreferences) or web-level (any WebPreferences), e.g.
       
   558 			* =Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" ...=
       
   559 		* Before a table using =%<nop>TABLE{...}%=
       
   560 
       
   561 ---++ Sorting
       
   562 
       
   563 Click on column heading text to sort by a column.  Initial column will be sorted in descending order, click again to get ascending order.  The type of data in the cell is determined automatically:
       
   564 
       
   565 	* date if format is:
       
   566 		* dd MMM YYY - hh:mm
       
   567 		* dd-MMM-YY or dd-MMM-YYYY (can be / or space in place of -)
       
   568 		* MMM is Jan, Feb, etc
       
   569 	* number is digits, with optional decimal point
       
   570 	* otherwise treated as text
       
   571 
       
   572 ---++ <nop>%TOPIC% Global Settings
       
   573 
       
   574 Plugin settings are stored as preferences variables. To reference
       
   575 a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, for example, ==%<nop>INTERWIKIPLUGIN_SHORTDESCRIPTION%==
       
   576 
       
   577 	* One line description, shown in the %TWIKIWEB%.TextFormattingRules topic:
       
   578 		* Set SHORTDESCRIPTION = Control attributes of tables and sorting of table columns
       
   579 
       
   580 	* Set DEBUG to 1 to get debug messages in =data/debug.txt=.  Default: =0=
       
   581 		* Set DEBUG = 0
       
   582 
       
   583 	* Make sortable:
       
   584 		* #Set SORT = attachments
       
   585 		* Set SORT = all
       
   586 		* #Set SORT = none
       
   587 
       
   588 	* Default table attributes:
       
   589 		* Set TABLEATTRIBUTES = tableborder="1" cellpadding="0" cellspacing="1" headerbg="#99CCCC" databg="#FFFFCC, #FFFFFF"
       
   590 
       
   591 
       
   592 ---++ Table Attributes
       
   593 
       
   594 Attributes are defined as a =TABLEATTRIBUTES= Plugin setting in this topic, a =TABLEATTRIBUTES= preferences setting, or on line before the table using =%<nop>TABLE{...}%=:
       
   595 
       
   596 | *Argument* | *Comment* | *Example* |
       
   597 | =sort=	  | Set table sorting ="on"= or ="off"= | =sort="on"= |
       
   598 | =initsort= | Column to sort initially (="1"= to number of columns) | =initsort="2"= |
       
   599 | =initdirection= | Initial sorting direction for =initsort=, set to  ="up"= or ="down"= | =initdirection="up"= |
       
   600 | =headerbg= | Header cell background colour. Choose one of the %TWIKIWEB%.StandardColors | =headerbg="#99CCCC"= |
       
   601 | =headercolor= | Header cell text colour | =headercolor="#0000CC"= |
       
   602 | =databg=	| Data cell background colour, a comma separated list. Specify ="none"= for no colour, that is to use the colour/background of the page the table is on. | =databg="#C8CB8F, #DBDDB5"= |
       
   603 | =datacolor= | Data cell text colour, a comma separated list | =datacolor="#0000CC, #000000"= |
       
   604 | =tableborder= | Table border width (pixels) | =tableborder="2"= |
       
   605 | =tableframe= | Table frame, set to ="void"= (no sides), ="above"= (the top side only), ="below"= (the bottom side only), ="hsides"= (the top and bottom sides only), ="lhs"= (the left-hand side only), ="rhs"= (the right-hand side only), ="vsides"= (the right and left sides only), ="box"= (all four sides), ="border"= (all four sides); default ="void"= | =tableframe="hsides"= |
       
   606 | =tablerules= | Table rules, set to ="none"= (no rules), ="groups"= (rules will appear between row groups and column groups only), ="rows"= (rules will appear between rows only), ="cols"= (rules will appear between columns only), ="all"= (rules will appear between all rows and columns); default ="none"= | =tablerules="rows"= |		  
       
   607 | =cellpadding= | Cell padding (pixels) | =cellpadding="0"= |
       
   608 | =cellspacing= | Cell spacing (pixels) | =cellspacing="3"= |
       
   609 | =valign= | Vertical alignment of cells, set to ="top"=, ="middle"=, ="bottom"= or ="baseline"= | =valign="top"= |
       
   610 | =headeralign= | Header cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings | =headeralign="left, right"= |
       
   611 | =dataalign= | Data cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to ="left"=, ="center"=, ="right"= or ="justify"=. Overrides individual cell settings | =dataalign="center"= |
       
   612 | =tablewidth= | Table width: Percentage of window width, or absolute pixel value. Default is unspecified | =tablewidth="100%"= |
       
   613 | =columnwidths= | Column widths: Comma delimited list of column widths, percentage or absolute pixel value. Default is unspecified | =columnwidths="80%, 20%"= |
       
   614 | =headerrows= | Number of header rows to exclude from sort; default ="1"= | =headerrows="1"= |
       
   615 | =footerrows= | Number of footer rows to exclude from sort; default ="0"= | =footerrows="1"= |
       
   616 
       
   617 The =%<nop>TABLE{...}%= settings override =TABLEATTRIBUTES= preferences settings, which override the =TABLEATTRIBUTES= Plugin settings. 
       
   618 
       
   619 ---++ Examples
       
   620 
       
   621 ---+++ Use of %<nop>TABLE{...}%
       
   622 
       
   623 Line before table: =%<nop>TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" headerrows="2" footerrows="1" }%=
       
   624 
       
   625 %TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" headerrows="2" footerrows="1" }%
       
   626 | *Table with two Header Rows and Footer Row* ||||||
       
   627 | *Num* | *Status* | *Action* | *Who* | *When* | *Progress* |
       
   628 | 1 | C | Chose new colours | John | 1-Dec-02 | |
       
   629 | 2 | X | Release | John | 1-Apr-02 | |
       
   630 | 3 |	| Get feedback | Anne | 1-Feb-02 | |
       
   631 | 12 | C | Spec error handling | Jack | 1-Dec-02 | |
       
   632 | 5 |	| Abc | John | | |
       
   633 | *Num* | *Status* | *Action* | *Who* | *When* | *Progress* |
       
   634 
       
   635 ---+++ Table with 4 digit year dates and no use of %<nop>TABLE{...}%
       
   636 
       
   637 | *When* |
       
   638 | 1-Jan-2004 |
       
   639 | 1-Jan-2003 |
       
   640 | 2-Jan-2005 |
       
   641 
       
   642 ---++ Plugin Installation Instructions
       
   643 
       
   644 *Note:* You do not need to install anything on the browser to use this plugin. Below installation instructions are for the administrator who needs to install this plugin on the TWiki server.
       
   645 
       
   646 	* Download the ZIP file from the Plugin web (see below)
       
   647 	* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
       
   648 	  | *File:* | *Description:* |
       
   649 	  | ==data/TWiki/%TOPIC%.txt== | Plugin topic |
       
   650 	  | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository |
       
   651 	  | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module |
       
   652 	  | ==pub/TWiki/%TOPIC%/diamond.gif== | Diamond symbol |
       
   653 	  | ==pub/TWiki/%TOPIC%/down.gif== | Down arrow |
       
   654 	  | ==pub/TWiki/%TOPIC%/up.gif== | Up arrow |
       
   655 	* Test if the plugin is correctly installed:
       
   656 		* Check above example if the table renders as expected
       
   657 		* Try click on heading to sort.  Other tables should also be sortable
       
   658 
       
   659 ---++ Plugin Info
       
   660 
       
   661 |  Plugin Author: | TWiki:Main/JohnTalintyre, TWiki:Main/PeterThoeny |
       
   662 |  Plugin Version: | 21 Mar 2004 |
       
   663 |  Change History: | <!-- specify latest version first -->&nbsp; |
       
   664 |  21 Mar 2004: | PTh: Internal change: Fixed reference to inofficial variable |
       
   665 |  01 Jan 2004: | PTh: Alternating data row colors restart again after each header row |
       
   666 |  01 Dec 2003: | PTh: Fixed error when footerrows was specified on an empty table, contributed by TWiki:Main/PaulineCheung |
       
   667 |  24 May 2003: | PTh: New =&#124;^&#124;= rule for multi row span (TWiki:Main/WalterMundt); added tableframe and tablerules (TWiki:Main/JohannesMartin); ignore columnwidths for multi column span; validate headerrows and footerrows (TWiki:Main/DarrylGreen); fixed link color problem and up/down icon color problem for dark header background |
       
   668 |  17 Dec 2002: | PTh: Removed individual table Plugin settings; added TABLEATTRIBUTES Plugins setting and TABLEATTRIBUTES preferences setting |
       
   669 |  15 Dec 2002: | PTh: Added headerrows and footerrows params (TWiki:Main/DarrylGreen, TWiki:Main/WoutMertens); added tablewidth and columnwidths params (TWiki:Main/ThorstenSommermann) |
       
   670 |  09 Dec 2002: | PTh: Added headercolor and datacolor parameters |
       
   671 |  05 Jun 2002: | PTh: Added "none" value to databg parameter (suggested by TWiki:Main/TaitCyrus); fixed sorting by stripping HTML tags, removing links and making sort ignore case (suggested by TWiki:Main/ShawnBradford) |
       
   672 |  13 Mar 2002: | PTh: Added TWiki:Main/ShawnBradford 's initsort and initdirection |
       
   673 |  12 Mar 2002: | PTh: Added valign, headeralign and dataalign; fixed bug of swapped cellpadding/cellspacing; fixed warning of uninitialized value |
       
   674 |  05 Jan 2002: | PTh: Fixed sorting bug of cells with leading white space  |
       
   675 |  06 Dec 2001: | PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more |
       
   676 |  29 Nov 2001: | PTh: Fixed Perl warnings |
       
   677 |  16 Nov 2001: | PTh: Added table border, cell spacing, cell padding, gif files |
       
   678 |  07 Oct 2001: | JT: Initial version |
       
   679 |  CPAN Dependencies: | none |
       
   680 |  Other Dependencies: | none |
       
   681 |  Perl Version: | 5.0 |
       
   682 |  Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
       
   683 |  Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
       
   684 
       
   685 __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins, %TWIKIWEB%.StandardColors
       
   686 
       
   687 -- TWiki:Main/JohnTalintyre - 07 Oct 2001 <br />
       
   688 -- TWiki:Main/PeterThoeny - 21 Mar 2004 <br />
       
   689 @
       
   690 
       
   691 
       
   692 1.20
       
   693 log
       
   694 @none
       
   695 @
       
   696 text
       
   697 @d1 1
       
   698 a1 1
       
   699 %META:TOPICINFO{author="PeterThoeny" date="1073013496" format="1.0" version="1.20"}%
       
   700 d116 1
       
   701 a116 1
       
   702 |  Plugin Version: | 01 Jan 2004 |
       
   703 d118 1
       
   704 d142 1
       
   705 a142 1
       
   706 -- TWiki:Main/PeterThoeny - 01 Jan 2004 <br />
       
   707 @
       
   708 
       
   709 
       
   710 1.19
       
   711 log
       
   712 @none
       
   713 @
       
   714 text
       
   715 @d1 1
       
   716 a1 1
       
   717 %META:TOPICINFO{author="PeterThoeny" date="1053858660" format="1.0" version="1.19"}%
       
   718 d116 1
       
   719 a116 1
       
   720 |  Plugin Version: | 01 Dec 2003 |
       
   721 d118 1
       
   722 d141 1
       
   723 a141 1
       
   724 -- TWiki:Main/PeterThoeny - 01 Dec 2003 <br />
       
   725 @
       
   726 
       
   727 
       
   728 1.18
       
   729 log
       
   730 @none
       
   731 @
       
   732 text
       
   733 @d1 1
       
   734 a1 1
       
   735 %META:TOPICINFO{author="PeterThoeny" date="1053833520" format="1.0" version="1.18"}%
       
   736 d21 1
       
   737 a21 1
       
   738 		* dd-MMM-YY or dd-MM-YYYY (can be / or space in place of -)
       
   739 d73 3
       
   740 a75 1
       
   741 ---++ Example
       
   742 d89 7
       
   743 d115 2
       
   744 a116 2
       
   745 |  Plugin Author: | %TWIKIWEB%.JohnTalintyre, %TWIKIWEB%.PeterThoeny |
       
   746 |  Plugin Version: | 24 May 2003 |
       
   747 d118 2
       
   748 a119 1
       
   749 |  24 May 2003: | PTh: New =&#124;^&#124;= rule for multi row span (TWiki:Main/WalterMundt); added tableframe and tablerules (TWiki:Main/JohannesMartin); ignore columnwidths for multi column span; validate headerrows and footerrows (TWiki:Main/DarrylGreen) |
       
   750 d139 5
       
   751 a143 5
       
   752 -- %TWIKIWEB%.JohnTalintyre - 07 Oct 2001 <br />
       
   753 -- %TWIKIWEB%.PeterThoeny - 24 May 2003 <br />
       
   754 %META:FILEATTACHMENT{name="up.gif" attr="" comment="Up arrow" date="1005707580" path="C:\Data\Temp\up.gif" size="876" user="PeterThoeny" version="1.1"}%
       
   755 %META:FILEATTACHMENT{name="down.gif" attr="" comment="Down arrow" date="1005707591" path="C:\Data\Temp\down.gif" size="869" user="PeterThoeny" version="1.1"}%
       
   756 %META:FILEATTACHMENT{name="diamond.gif" attr="" comment="Diamond symbol" date="1005707607" path="C:\Data\Temp\diamond.gif" size="881" user="PeterThoeny" version="1.1"}%
       
   757 @
       
   758 
       
   759 
       
   760 1.17
       
   761 log
       
   762 @none@
       
   763 text
       
   764 @d1 1
       
   765 a1 1
       
   766 %META:TOPICINFO{author="PeterThoeny" date="1051945822" format="1.0" version="1.17"}%
       
   767 d51 3
       
   768 a53 3
       
   769 | =sort=	  | Set table sorting =on= or =off= | =sort="on"= |
       
   770 | =initsort= | Column to sort initially (1 to number of columns) | =initsort="2"= |
       
   771 | =initdirection= | Initial sorting direction for =initsort=, set to  =up= or =down= | =initdirection="up"= |
       
   772 d59 2
       
   773 d63 3
       
   774 a65 3
       
   775 | =valign= | Vertical alignment of cells, set to =top=, =middle=, =bottom= or =baseline= | =valign="top"= |
       
   776 | =headeralign= | Header cell alignment, set to =left=, =center=, =right= or =justify=. Overrides individual cell settings | =headeralign="left"= |
       
   777 | =dataalign= | Data cell alignment, set to =left=, =center=, =right= or =justify=. Overrides individual cell settings | =dataalign="center"= |
       
   778 d68 2
       
   779 a69 2
       
   780 | =headerrows= | Number of header rows to exclude from sort; default 1 | =headerrows="1"= |
       
   781 | =footerrows= | Number of footer rows to exclude from sort; default 0 | =footerrows="1"= |
       
   782 d107 1
       
   783 a107 1
       
   784 |  Plugin Version: | 17 Dec 2002 |
       
   785 d109 1
       
   786 d111 1
       
   787 a111 1
       
   788 |  15 Dec 2002: | PTh: Added headerrows and footerrows params (TWiki:Main/WoutMertens); added tablewidth and columnwidths params (TWiki:Main/ThorstenSommermann) |
       
   789 d130 1
       
   790 a130 1
       
   791 -- %TWIKIWEB%.PeterThoeny - 17 Dec 2002 <br />
       
   792 @
       
   793 
       
   794 
       
   795 1.16
       
   796 log
       
   797 @none
       
   798 @
       
   799 text
       
   800 @d1 1
       
   801 a1 1
       
   802 %META:TOPICINFO{author="PeterThoeny" date="1040164692" format="1.0" version="1.16"}%
       
   803 d53 1
       
   804 a53 1
       
   805 | =initdirection= | Initial sorting direction for =initsort=, set to  =up= or =down= | =initsort="down"= |
       
   806 @
       
   807 
       
   808 
       
   809 1.15
       
   810 log
       
   811 @none
       
   812 @
       
   813 text
       
   814 @d1 1
       
   815 a1 1
       
   816 %META:TOPICINFO{author="PeterThoeny" date="1039944840" format="1.0" version="1.15"}%
       
   817 d7 7
       
   818 a13 3
       
   819 	* Changing background color for header cells
       
   820 	* Changing background color for data cells - colors can _alternate_
       
   821 	* Behaviour can be specified for a specific table using %<nop>TABLE{...}% or with global preferences
       
   822 d15 10
       
   823 a36 33
       
   824 	* Table border width.  Default: 1
       
   825 		* Set TABLEBORDER = 1
       
   826 
       
   827 	* Table cell padding.  Default: 0
       
   828 		* Set CELLPADDING = 0
       
   829 
       
   830 	* Table cell spacing.  Default: 1
       
   831 		* Set CELLSPACING = 1
       
   832 
       
   833 	* Table width, e.g. =100%= for relative, =640= for absolute width.  Default: (not set)
       
   834 		* Set TABLEWIDTH = 
       
   835 
       
   836 	* Vertical alignment of cells. Set to: =top=, =middle=, =bottom= or =baseline=; default: (empty)
       
   837 		* Set VALIGN = 
       
   838 
       
   839 	* Table header cell alignment. Set to: =left=, =center=, =right= or =justify=; default: (empty)
       
   840 		* Set HEADERALIGN = 
       
   841 
       
   842 	* Table data cell alignment. Set to: =left=, =center=, =right= or =justify=; default: (empty)
       
   843 		* Set DATAALIGN = 
       
   844 
       
   845 	* Background color of header cells ('*'s around text). Choose one of the %TWIKIWEB%.StandardColors. Default: <span style="background : #99CCCC;">#99CCCC</span>
       
   846 		* Set HEADER_BG = 
       
   847 
       
   848 	* Text color of header cells ('*'s around text).  Default: not specified, e.g. determined by the browser
       
   849 		* Set HEADER_COLOR = 
       
   850 
       
   851 	* Background color of table rows, two alternate colors.  Default: <span style="background : #FFFFCC;">#FFFFCC</span>, <span style="background : #FFFFFF;">#FFFFFF</span>
       
   852 		* Set DATA_BG = #FFFFCC, #FFFFFF
       
   853 
       
   854 	* Text color of table rows, alternate colors.  Default: not specified, e.g. determined by the browser
       
   855 		* Set DATA_COLOR = 
       
   856 
       
   857 d42 2
       
   858 a43 1
       
   859 ---++ Sorting
       
   860 a44 8
       
   861 Click on column heading text to sort by a column.  Initial column will be sorted in descending order, click again to get ascending order.  The type of data in the cell is determined automatically:
       
   862 
       
   863 	* date if format is:
       
   864 		* dd MMM YYY - hh:mm
       
   865 		* dd-MMM-YY or dd-MM-YYYY (can be / or space in place of -)
       
   866 		* MMM is Jan, Feb, etc
       
   867 	* number is digits, with optional decimal point
       
   868 	* otherwise treated as text
       
   869 d46 1
       
   870 a46 1
       
   871 ---++ Per Table Settings
       
   872 d48 1
       
   873 a48 1
       
   874 On line before the table use =%<nop>TABLE{...}%=:
       
   875 d69 1
       
   876 a69 1
       
   877 All default to the global setting
       
   878 d105 1
       
   879 a105 1
       
   880 |  Plugin Version: | 15 Dec 2002 |
       
   881 d107 1
       
   882 d127 1
       
   883 a127 1
       
   884 -- %TWIKIWEB%.PeterThoeny - 15 Dec 2002 <br />
       
   885 @
       
   886 
       
   887 
       
   888 1.14
       
   889 log
       
   890 @none
       
   891 @
       
   892 text
       
   893 @d1 1
       
   894 a1 1
       
   895 %META:TOPICINFO{author="PeterThoeny" date="1039479060" format="1.0" version="1.14"}%
       
   896 d32 3
       
   897 d90 4
       
   898 d99 1
       
   899 a99 1
       
   900 Line before table: =%<nop>TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" }%=
       
   901 d101 2
       
   902 a102 1
       
   903 %TABLE{ sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#000099" headercolor="#FFFFCC" databg="#C8CB8F, #DBDDB5" }%
       
   904 d109 1
       
   905 d131 1
       
   906 a131 1
       
   907 |  Plugin Version: | 09 Dec 2002 |
       
   908 d133 1
       
   909 d152 1
       
   910 a152 1
       
   911 -- %TWIKIWEB%.PeterThoeny - 09 Dec 2002 <br />
       
   912 @
       
   913 
       
   914 
       
   915 1.13
       
   916 log
       
   917 @none
       
   918 @
       
   919 text
       
   920 @d1 1
       
   921 a1 1
       
   922 %META:TOPICINFO{author="PeterThoeny" date="1023260211" format="1.0" version="1.13"}%
       
   923 d41 2
       
   924 a42 2
       
   925 	* Color for header cells ('*'s around text).  Default: <span style="background : #99CCCC;">#99CCCC</span>
       
   926 		* #Set HEADER_BG = red
       
   927 d44 8
       
   928 a51 2
       
   929 	* Background color for table rows, two alternate colors.  Default: <span style="background : #FFFFCC;">#FFFFCC</span>,<span style="background : #FFFFFF;">#FFFFFF</span>
       
   930 		* Set DATA_BG = #FFFFCC,#FFFFFF
       
   931 d77 4
       
   932 a80 2
       
   933 | =headerbg= | Header cell background colour | =headerbg="#99CCCC"= |
       
   934 | =databg=	| Data cell background colour, a comma separated list. Specify ="none"= for no colour, that is to use the colour/background of the page the table is on. | =databg="#C8CB8F,#DBDDB5"= |
       
   935 d90 1
       
   936 a90 1
       
   937 ---++ Examples
       
   938 d92 1
       
   939 a92 1
       
   940 Line before table: =%<nop>TABLE{sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%=
       
   941 d94 1
       
   942 a94 1
       
   943 %TABLE{sort="on" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%
       
   944 d122 1
       
   945 a122 1
       
   946 |  Plugin Version: | 13 Mar 2002 |
       
   947 d124 1
       
   948 d139 1
       
   949 a139 1
       
   950 __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins
       
   951 d142 1
       
   952 a142 1
       
   953 -- %TWIKIWEB%.PeterThoeny - 05 Jun 2002 <br />
       
   954 @
       
   955 
       
   956 
       
   957 1.12
       
   958 log
       
   959 @none
       
   960 @
       
   961 text
       
   962 @d1 1
       
   963 a1 1
       
   964 %META:TOPICINFO{author="PeterThoeny" date="1016001000" format="1.0" version="1.12"}%
       
   965 d72 1
       
   966 a72 1
       
   967 | =databg=	| Data cell background colour, a comma separated list | =databg="#C8CB8F,#DBDDB5"= |
       
   968 d96 2
       
   969 d115 9
       
   970 a123 1
       
   971 |  Change History: | 13 Mar 2002 PTh: Added TWiki:Main/ShawnBradford 's initsort and initdirection <br /> 12 Mar 2002 PTh: Added valign, headeralign and dataalign; fixed bug of swapped cellpadding/cellspacing; fixed warning of uninitialized value <br /> 05 Jan 2002 PTh: Fixed sorting bug of cells with leading white space <br /> 06 Dec 2001 PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
   972 d133 1
       
   973 a133 1
       
   974 -- %TWIKIWEB%.PeterThoeny - 13 Mar 2002 <br />
       
   975 @
       
   976 
       
   977 
       
   978 1.11
       
   979 log
       
   980 @none
       
   981 @
       
   982 text
       
   983 @d1 1
       
   984 a1 1
       
   985 %META:TOPICINFO{author="PeterThoeny" date="1015987140" format="1.0" version="1.11"}%
       
   986 d69 2
       
   987 d72 1
       
   988 a72 1
       
   989 | =databg=	| Data cell background colour, a comma seperated list | =databg="#C8CB8F,#DBDDB5"= |
       
   990 d112 2
       
   991 a113 2
       
   992 |  Plugin Version: | 12 Mar 2002 |
       
   993 |  Change History: | 12 Mar 2002 PTh: Added valign, headeralign and dataalign; fixed bug of swapped cellpadding/cellspacing; fixed warning of uninitialized value <br /> 05 Jan 2002 PTh: Fixed sorting bug of cells with leading white space <br /> 06 Dec 2001 PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
   994 d123 1
       
   995 a123 1
       
   996 -- %TWIKIWEB%.PeterThoeny - 12 Mar 2002 <br />
       
   997 @
       
   998 
       
   999 
       
  1000 1.10
       
  1001 log
       
  1002 @none
       
  1003 @
       
  1004 text
       
  1005 @d1 1
       
  1006 a1 1
       
  1007 %META:TOPICINFO{author="PeterThoeny" date="1015541700" format="1.0" version="1.10"}%
       
  1008 d92 1
       
  1009 a92 1
       
  1010 ---+++ Plugin Installation Instructions
       
  1011 d107 1
       
  1012 a107 1
       
  1013 ---+++ Plugin Info
       
  1014 d109 3
       
  1015 a111 3
       
  1016 |  Plugin Author: | %TWIKIWEB%.JohnTalintyre |
       
  1017 |  Plugin Version: | 07 Mar 2002 |
       
  1018 |  Change History: | 07 Mar 2002 PTh: Added valign, headeralign and dataalign; fixed swapped cellpadding/cellspacing bug <br /> 05 Jan 2002 PTh: Fixed sorting bug of cells with leading white space <br /> 06 Dec 2001 PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1019 d121 1
       
  1020 a121 1
       
  1021 -- %TWIKIWEB%.PeterThoeny - 07 Mar 2002 <br />
       
  1022 @
       
  1023 
       
  1024 
       
  1025 1.9
       
  1026 log
       
  1027 @none
       
  1028 @
       
  1029 text
       
  1030 @d1 1
       
  1031 a1 1
       
  1032 %META:TOPICINFO{author="PeterThoeny" date="1010218620" format="1.0" version="1.9"}%
       
  1033 d32 9
       
  1034 d74 3
       
  1035 d82 1
       
  1036 a82 1
       
  1037 Line before table: =%<nop>TABLE{sort="on" tableborder="0" cellpadding="3" cellspacing="1" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%=
       
  1038 d84 1
       
  1039 a84 1
       
  1040 %TABLE{sort="on" tableborder="0" cellpadding="3" cellspacing="1" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%
       
  1041 d110 2
       
  1042 a111 2
       
  1043 |  Plugin Version: | 05 Jan 2002 |
       
  1044 |  Change History: | 05 Jan 2002 PTh: Fixed sorting bug of cells with leading white space <br /> 06 Dec 2001 PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1045 d121 1
       
  1046 a121 1
       
  1047 -- %TWIKIWEB%.PeterThoeny - 05 Jan 2002 <br />
       
  1048 @
       
  1049 
       
  1050 
       
  1051 1.8
       
  1052 log
       
  1053 @none
       
  1054 @
       
  1055 text
       
  1056 @d1 1
       
  1057 a1 1
       
  1058 %META:TOPICINFO{author="PeterThoeny" date="1007891134" format="1.0" version="1.8"}%
       
  1059 d15 1
       
  1060 a15 1
       
  1061 a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, i.e. ==%<nop>INTERWIKIPLUGIN_SHORTDESCRIPTION%==
       
  1062 d17 1
       
  1063 a17 1
       
  1064 	* One line description, is shown in the %TWIKIWEB%.TextFormattingRules topic:
       
  1065 d98 2
       
  1066 a99 2
       
  1067 |  Plugin Version: | 06 Dec 2001 |
       
  1068 |  Change History: | 06 Dec 2001 PTh: Fixed date sorting bug <br /> 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1069 d109 1
       
  1070 a109 1
       
  1071 -- %TWIKIWEB%.PeterThoeny - 06 Dec 2001 <br />
       
  1072 @
       
  1073 
       
  1074 
       
  1075 1.7
       
  1076 log
       
  1077 @none
       
  1078 @
       
  1079 text
       
  1080 @d1 1
       
  1081 a1 1
       
  1082 %META:TOPICINFO{author="PeterThoeny" date="1007710080" format="1.0" version="1.7"}%
       
  1083 d4 1
       
  1084 a4 1
       
  1085 Gives extra control off table display:
       
  1086 @
       
  1087 
       
  1088 
       
  1089 1.6
       
  1090 log
       
  1091 @none
       
  1092 @
       
  1093 text
       
  1094 @d1 1
       
  1095 a1 1
       
  1096 %META:TOPICINFO{author="PeterThoeny" date="1007432760" format="1.0" version="1.6"}%
       
  1097 d98 2
       
  1098 a99 2
       
  1099 |  Plugin Version: | 03 Dec 2001 |
       
  1100 |  Change History: | 03 Dec 2001 PTh: Fixed sort="off" bug and more <br /> 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1101 d109 1
       
  1102 a109 1
       
  1103 -- %TWIKIWEB%.PeterThoeny - 03 Dec 2001 <br>
       
  1104 @
       
  1105 
       
  1106 
       
  1107 1.5
       
  1108 log
       
  1109 @none
       
  1110 @
       
  1111 text
       
  1112 @d1 1
       
  1113 a1 1
       
  1114 %META:TOPICINFO{author="PeterThoeny" date="1007021551" format="1.0" version="1.5"}%
       
  1115 d59 1
       
  1116 a59 1
       
  1117 | =sort=	  | Set =on= or =off= | =sort="on"= |
       
  1118 d98 4
       
  1119 a101 4
       
  1120 |  Plugin Version: | 29 Nov 2001 |
       
  1121 |  Change History: | 29 Nov 2001: PTh fixed Perl warnings <br /> 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1122 |  CPAN Dependencies: |  |
       
  1123 |  Other Dependencies: |  |
       
  1124 d109 1
       
  1125 a109 1
       
  1126 -- %TWIKIWEB%.PeterThoeny - 16 Nov 2001 <br>
       
  1127 @
       
  1128 
       
  1129 
       
  1130 1.4
       
  1131 log
       
  1132 @none
       
  1133 @
       
  1134 text
       
  1135 @d1 1
       
  1136 a1 1
       
  1137 %META:TOPICINFO{author="PeterThoeny" date="1005906204" format="1.0" version="1.4"}%
       
  1138 d98 2
       
  1139 a99 2
       
  1140 |  Plugin Version: | 07 Oct 2001 |
       
  1141 |  Change History: | 16 Nov 2001: PTh added table border, cell spacing, cell padding, gif files <br /> 07 Oct 2001: Initial version |
       
  1142 @
       
  1143 
       
  1144 
       
  1145 1.3
       
  1146 log
       
  1147 @none
       
  1148 @
       
  1149 text
       
  1150 @d1 1
       
  1151 a1 1
       
  1152 %META:TOPICINFO{author="PeterThoeny" date="1005880790" format="1.0" version="1.3"}%
       
  1153 d6 1
       
  1154 d11 12
       
  1155 a22 3
       
  1156 ---++ Global Preferences
       
  1157 	* Set DEBUG to on to get debug messages in =data/debug.txt=.  Default: =off=
       
  1158 		* Set DEBUG = off
       
  1159 d24 2
       
  1160 a25 1
       
  1161 		* Set TABLEBORDER = 3
       
  1162 d27 2
       
  1163 a28 1
       
  1164 		* Set CELLPADDING = 5
       
  1165 d30 2
       
  1166 a31 1
       
  1167 		* Set CELLSPACING = 2
       
  1168 d34 1
       
  1169 d37 1
       
  1170 a41 2
       
  1171 	* Short description:
       
  1172 		* Set SHORTDESCRIPTION = Control attributes of tables and sorting of table columns
       
  1173 d54 1
       
  1174 a54 1
       
  1175 ---++ Per table settings
       
  1176 d70 1
       
  1177 a70 1
       
  1178 Line before table: =%<nop>TABLE{sort="on" tableborder="0" cellpadding="2" cellspacing="1" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%=
       
  1179 d72 1
       
  1180 a72 1
       
  1181 %TABLE{sort="on" tableborder="0" cellpadding="3" cellspacing="0" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%
       
  1182 d80 28
       
  1183 d109 1
       
  1184 a109 1
       
  1185 -- %TWIKIWEB%.PeterThoeny - 15 Nov 2001 <br />
       
  1186 @
       
  1187 
       
  1188 
       
  1189 1.2
       
  1190 log
       
  1191 @none
       
  1192 @
       
  1193 text
       
  1194 @d1 1
       
  1195 a1 1
       
  1196 %META:TOPICINFO{author="PeterThoeny" date="1005707632" format="1.0" version="1.2"}%
       
  1197 d6 2
       
  1198 a7 2
       
  1199 	* Changing background colour for header cells
       
  1200 	* Changing background colour for data cells - colours can _alternate_
       
  1201 d12 8
       
  1202 a19 2
       
  1203 		* Set DEBUG = on
       
  1204 	* Colour for header cells ('*'s around text).  Default: <font color=\"#99CCCC\">#99CCCC</font>
       
  1205 d21 8
       
  1206 a28 7
       
  1207 	* #Set DATA_BG = #C8CB8F,#DBDDB5
       
  1208 	* Set DATA_BG = #FFFFCC,#FFFFFF
       
  1209 	* #Set SORT = attachments
       
  1210 	* Set SORT = all
       
  1211 	* #Set SORT = none
       
  1212 
       
  1213 	* Set SHORTDESCRIPTION = Control sorting and colours for table display
       
  1214 d43 1
       
  1215 a43 1
       
  1216 On line before the table use %<nop>TABLE{...}%:
       
  1217 d45 7
       
  1218 a51 4
       
  1219 | *Argument* | *Comment* |
       
  1220 | =sort=	  | =on= or =off= |
       
  1221 | =headerbg=  | header cell background colour |
       
  1222 | =databg=	| data cell background colour, a comma seperated list |
       
  1223 d57 1
       
  1224 a57 1
       
  1225 Line before table: %<nop>TABLE{sort="on" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%
       
  1226 d59 1
       
  1227 a59 1
       
  1228 %TABLE{sort="on" headerbg="#99CCCC" databg="#C8CB8F,#DBDDB5"}%
       
  1229 a66 1
       
  1230 
       
  1231 d68 1
       
  1232 @
       
  1233 
       
  1234 
       
  1235 1.1
       
  1236 log
       
  1237 @none
       
  1238 @
       
  1239 text
       
  1240 @d1 1
       
  1241 a1 1
       
  1242 %META:TOPICINFO{author="PeterThoeny" date="1005471859" format="1.0" version="1.1"}%
       
  1243 d58 4
       
  1244 a61 1
       
  1245 -- Main.JohnTalintyre - 07 Oct 2001 <br />
       
  1246 @