PDA

View Full Version : How Do I Make a Table


bernard
09-05-2007, 01:40 PM
With this vbcode
[ table="head"]head col1|head col2|head col3
row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3[ /table]

head col1|head col2|head col3
row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3

Introduction to options:
example: [table="option1;option2=value;option3='this is a long value with space';option4=value1,value2,value3"]
The whole option list should be wrapped with quotes.
Options are seperated by a semicolon
If an option has a value it is assigned with "equal to" mark. (option2)
If the value contains blanks or special characters it has to be wrapped with apostrophes. (option3)
If an option has more than one value they are seperated by a comma. (option4)

Description of options:
head
This option defines the first line as head, so the first row is shown as head of the table. If the table sould be sorted, the head is not sorted.

autonum=1 (equal to autonum) autonum=a autonum=A
Defines that a new first column containing a numbering should be inserted.
1 -> 1, 2, 3, 4, ... , 999, 1000, ....
a -> a, b, c, ... , aa, ab, ... , zz
A -> A, B, C, ... , AA, BB, ... , ZZ

autonumtitle=oneword autonumtitle='long value with spaces'
Defines the title of the autonum-column. Can be left empty.

width=123px width=45em width=67%
Defines the width of the table.


Introduction to special options (formating cells and rows):
example: {option1=value1}{option2=value2}
These "special" options can be written as the very first content of a cell to format it.

Description of special options:
{colsp=5}
Defines a colspan from current cell with the length of 5 cells

Diane
09-05-2007, 04:58 PM
Bernard, this is a great accessory. Thank you. I know at least one thread I can go fix immediately. :)

Diane
09-05-2007, 05:41 PM
I'm having trouble but I'll figure it out eventually. Hope you don't mind me going into your post to look at the actual code.

bernard
09-05-2007, 05:51 PM
Diane,

A table may have an header or not =>

row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3
head col1|head col2|head col3
row1 col1|row1 col2|row1 col3
row2 col1|row2 col2|row2 col3

Each column is separated by a |.
Each line is separated by a carriage return
Each cell may content anything you want.

bernard
09-05-2007, 05:55 PM
begin with these simple examples : I'll explain the options... later. :embarasse

Diane
09-05-2007, 06:04 PM
Thanks Bernard. |||||||||||||
It helps to find this key on the keyboard.:o :p