Thread: Code Table
View Single Post
Old
08-09-2006, 09:50 PM
  #1
Buffaloed
Administrator
Webmaster
 
Buffaloed's Avatar
 
Join Date: Feb 2002
Location: Buffalo, NY
Country: United States
Posts: 25,187
vCash: 1952
Code Table

Now you can do stuff like this:
PlayerGoalsAssistsPointsPIM+/-
Wayne Gretzy70801502+99
Dustin Rose1752177327000-160
Peter Puck12385090+29

by posting:
PHP Code:
[table="head,sort1d,2,3,4,5;autonumtitle=rank;width=25em"]Player|Goals|Assists|Points|PIM|+/-
Wayne Gretzy|70|80|150|2|+99
Dustin Rose
|175|2|177|327000|-160
Peter Puck
|12|38|50|90|+29
[/table
Setting it up:

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.

sort=1d,2,3,4,5
This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first column specifies the order: descending (default: ascending)

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.

Buffaloed is offline   Reply With Quote