Table Tags

t>

The table tag allows you to create concise tables with any degree of particularity.

Following are samples of table code an the results they yield. You will probably only find use for the first two though the remaining are available just in case you need more functionality.


t

The simplest table consists of rows and columns where each row is represented by a line and the columns are separated with tabs.

Example:

t>
	1,1	1,2	1,3
	2,1,	2,2	2,3
/>

yields:

1,1 1,2 1,3
2,1, 2,2 2,3

Automatic Column Sizing

When swl encounters blank cells, it will automatically increase the 'span' of the cell to their immediate left.

Example:

t>
	1,1	1,2	1,3
	2,1,	   	2,3
/>

yields:

1,1 1,2 1,3
2,1, 2,3

To get around this feature, place periods in blank cells:

Example:

t>
	1,1	1,2	1,3
	2,1,	.	2,3
/>

yields:

1,1 1,2 1,3
2,1,   2,3


t.h

Example:

t>
	h>1,1	1,2	1,3
	2,1,	2,2	2,3
/>

yields:

1,1 1,2 1,3
2,1, 2,2 2,3


t.r

Example:

t>
	r>
		1
		2
		3
	/>
/>

yields:

1 2 3


t.rh

Example:

t>
	rh>
		1
		2
		3
	/>
/>

yields:

1 2 3


t.r.c

Example:

t.r>
	1
	2
	c>
		3
		...
	/>
/./>

yields:

1 2 3
...


t.r.ch

Example:

t.r>
	1
	2
	ch>
		3
		...
	/>
/./>

yields:

1 2 3
...


t.r.h

Example:

t.r>
	1
	h>
		2
		3
	/>
	4
/./>

yields:

1 2 3 4


t.rh.c

Example:

t.rh>
	1
	c>
		2
		...
	/>
	3
/./>

yields:

1 2
...
3


t.rh.ch

Example:

t.rh>
	1
	ch>
		2
		...
	/>
	3
/./>

yields:

1 2
...
3


Variables

For information on how to use variables, see the variable tag page.

  1. table
    1. bgcolor
    2. background
    3. cellpadding
    4. cellspacing
    5. bordercolor
    6. border
    7. width
    8. height
    9. etc.
  2. tr/treven/trodd
    1. width
    2. height
    3. etc.
  3. td/th
    1. bgcolor
    2. background
    3. align
    4. valign
    5. width
    6. height
    7. etc.

tag_table.swl