Standard Tables #

Tables structures in KnowWE are marked up by vertical slashes. Each cell is marked up by one preceding vertical slash. It is possible to create table headings by using a double vertical slash for defining each heading cell. The table syntax is best understood by looking at a small example:

||Heading 1 || Heading 2 || Heading 3 
|Content 1-1| Content 1-2| Content 1-3 
|Content 2-1| Content 2-2| Content 2-3 

renders to:

Heading 1 Heading 2 Heading 3
Content 1-1 Content 1-2 Content 1-3
Content 2-1 Content 2-2 Content 2-3

As the example shows, heading cells are introduced by a double vertical slash each, normal content cells are marked by a single slash.

Sortable Tables#

Simply wrap your standard table definition with the markup.

%%sortable
||Heading 1 || Heading 2 || Heading 3 
|Content 1-1| Content 1-2| Content 1-3 
|Content 2-1| Content 2-2| Content 2-3 

renders to:

Heading 1 Heading 2 Heading 3
Content 1-1 Content 1-2 Content 1-3
Content 2-1 Content 2-2 Content 2-3

Columns of sortable tables can be sorted by clicking on the particular heading name.

Zebra Tables#

For wide tables it may be reasonable to color table lines differently.

%%zebra-table
||Heading 1 || Heading 2 || Heading 3 
|Content 1-1| Content 1-2| Content 1-3 
|Content 2-1| Content 2-2| Content 2-3 
|Content 3-1| Content 3-2| Content 3-3 
|Content 4-1| Content 4-2| Content 4-3 

renders to:

Heading 1 Heading 2 Heading 3
Content 1-1 Content 1-2 Content 1-3
Content 2-1 Content 2-2 Content 2-3
Content 3-1 Content 3-2 Content 3-3
Content 4-1 Content 4-2 Content 4-3

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
Bild 1.png 12.3 kB 1 26-Oct-2012 10:15 mfreiberg tableEdit_quick
png
Bild 2.png 15.8 kB 1 26-Oct-2012 10:15 mfreiberg tableEdit_default
png
Bild 3.png 11.0 kB 1 26-Oct-2012 10:15 mfreiberg tableEdit_big
png
Bild 4.png 9.4 kB 1 26-Oct-2012 10:15 mfreiberg tableEdit_small
This page (revision-1) was last changed on 26-Oct-2012 10:15 by Joachim Baumeister