usbdmx.com : The bus powered usb dmx interface : LightsOn opensource lighting framework (original) (raw)
Table basics
PmWiki has two types of table markup; the markup described in this page is useful for creating tables with lots of small cells, while table directive markups help with larger scale tables.
Simple tables are created via use of the double pipe character: ||. Lines beginning with this markup denote rows in a table; within such lines the double-pipe is used to delimit cells. In the examples below a border is added for illustration (the default is no border).
Header cells can be created by placing ! as the first character of a cell. Note that these are table headers, not headings, so it doesn't extend to !!, !!!, etc.
Any line that begins with || but doesn't have a closing || sets the table attributes for any tables that follow. These attributes can control the size and position of the table, borders, background color, and cell spacing. (In fact these are just standard HTML attributes that are placed in the
tag.)
Use the width= attribute to set a table's width, using either a percentage value or an absolute size.
Use align=center, align=left, and align=right to center, left, or right align a table. Note that align=left and align=right create a floating table, such that text wraps around the table.
Table alignment
| || border=1 align=center | |!cell 1 | |! cell 2 | |! cell 3|| | |left-aligned | | centered | | right-aligned|| | | border=1 align=left | |!cell 1 | |! cell 2 | |! cell 3|| | |left-aligned | | centered | | right-aligned|| Notice how text wraps to the right of a table using "align=left". |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- | ----------------- | ------------- | ---------- | ----------------- | --------------------- | -------- | --------- | ----------------- | ------------- | ---------- | ----------------------------------------------------------------------------------- |
| cell 1cell 2cell 3 left-alignedcenteredright-aligned cell 1cell 2cell 3 left-alignedcenteredright-aligned Notice how text wraps to the right of a table using "align=left". | | | | | | | | | | | | | |
The bgcolor= attribute sets the background color for a table. At present there is no way to specify the color of individual rows or cells in this type of table (but see Cookbook:FormattingSimpleTables).