tormodh's wiki : SimpleTables

Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Simple Table markup for Wikka

See also
Test at
SVN
2006-06-21
Patch committed to the SVN repository - to be included in 1.1.7.0: Patched files:


I've hacked together a simple table markup for WikkaWiki; it is working it's way from a "layout" table markup to an accessible data table markup.

Right now the markup should support most elements and attributes available in the xhtml standard. This includes table header elements (<th>) and table data elements (<td>), table sections (<thead>, <tbody>, <tfoot>, <col>, <colgroup>) and caption (<caption>). Additionally these elements can be fleshed out with table spesific attributes (like cells spanning several columns and/or rows, table summary, scope attributes for headers) in addition to general attributes (like id, class, title and style).

 

Basic Usage



Example:

||Row 1 Column 1||Row 1 Column 2||Row 1 Column 3||
||Row 2 Column 1||Row 2 Column 2||Row 2 Column 3||


The table data delimiter is two pipes (||).


Example:

|=|Header Column 1|=|Header Column 2|=|Header Column 3||
||Row 2 Column 1||Row 2 Column 2||Row 2 Column 3||


The header cell delimiter is two pipes surrounding an equal sign (|=|).
 

"Advanced" Usage


There are two different parts to the advanced part of the table markup.
  1. The element delimiters
  2. The attribute thingey

Elements

Elements are marked with two pipes surrounding a character symbol. Some of these are probably only interresting if you plan on using complex and/or accessible tables.

Example:

|!|
|?|The Caption||
|[|
|=|Header Column 1|=|Header Column 2||
|]|
|=|Footer Column 1|=|Footer Column 2||
|#|
||Row 1 Column 1||Row 1 Column 2||
||Row 2 Column 1||Row 2 Column 2||



= The elements/symbols are: =
Attributes

Attributes are specified between parenthesis "(" and ")", and defined by one character keys. The attributes are separated by semicolon.

Example:

(i:table2;u:Example table)
(t:A title;c:class differentclass)


|!|(i:table2;u:Example table)||
|?|(t:Title for the caption)The Caption||
|[|
|=|Header Column 1|=|Header Column 2||
|]|
|=|Footer Column 1|=|Footer Column 2||
|#|
||Row 1 Column 1||Row 1 Column 2||
||Row 2 Column 1||Row 2 Column 2||


= The attributes/keys are: =

 

Known Issues



There are no comments on this page.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.3573 seconds