From: <var...@us...> - 2009-02-16 15:16:55
|
Revision: 6506 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6506&view=rev Author: vargenau Date: 2009-02-16 15:16:52 +0000 (Mon, 16 Feb 2009) Log Message: ----------- Add information about bordered, boxed and sortable tables Modified Paths: -------------- trunk/pgsrc/Help%2FMediawikiTablePlugin Modified: trunk/pgsrc/Help%FMediawikiTablePlugin =================================================================== --- trunk/pgsrc/Help%2FMediawikiTablePlugin 2009-02-16 14:20:10 UTC (rev 6505) +++ trunk/pgsrc/Help%2FMediawikiTablePlugin 2009-02-16 15:16:52 UTC (rev 6506) @@ -1,4 +1,4 @@ -Date: Mon, 2 Feb 2009 5:18:24 +0100 +Date: Mon, 16 Feb 2009 15:18:24 +0100 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -57,6 +57,24 @@ The attributes might be put with or without double quotes. +=== Predefined CSS classes + +If you do not specify a class for the table, it will be rendered without border. + +==== Boxed and bordered tables + +If you specify ##class="boxed"##, you will have a border around the table (but not around the cells). + +If you specify ##class="bordered"##, you will have a border around the table and the cells + +In both cases, the caption (if any) will be bold and centered under the table + +In both cases, the headers (specified by ##!##) will have a ##"#d8d8d8"## background + +==== Sortable tables + +If you specify ##class="sortable"##, the table columns will be sortable. + == Examples === Example 1: simple table @@ -133,8 +151,39 @@ |} </verbatim> -=== Example 3: nested tables +=== Example 3: sortable table +Click on a column header to sort the column. +Clicking a second time will reverse the sorting order. + +{| class="bordered sortable" +|- +! First name !! Name !! Age +|- +| John || Smith || 35 +|- +| Albert || Wells || 5 +|- +| Sam || Adam || 102 +|} + +The above table is rendered from: + +<verbatim> +{| class="bordered sortable" +|- +! First name !! Name !! Age +|- +| John || Smith || 35 +|- +| Albert || Wells || 5 +|- +| Sam || Adam || 102 +|} +</verbatim> + +=== Example 4: nested tables + <<MediawikiTable {| class="bordered", align=center |+ Outer table caption This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |