Anguish
New member
This post viewtopic.php?f=2&t=7093 got me thinking that we needed a better way of showing tabular data on the forums, so I created all of the behind the scenes stuff for the BBCode to do so.
Let's take that data and put it into a table using BBCode...
Here is the data unformatted;
Seattle Tack Ast Sack Yds FFum FumR PD Int Yds IntTD
K. Lucas 7 0 0.0 0.0 0 0 0 0 0 0
D. Hawthorne 5 3 2.0 7.0 1 0 1 0 0 0
L. Hill 5 0 0.0 0.0 0 0 0 0 0 0
J. Babineaux 4 2 0.0 0.0 0 0 0 0 0 0
M. Trufant 4 0 0.0 0.0 0 0 0 0 0 0
D. Grant 2 2 0.0 0.0 0 0 1 0 0 0
B. Mebane 2 2 0.0 0.0 0 0 0 0 0 0
L. Jackson 2 1 0.0 0.0 0 0 0 0 0 0
A. Curry 2 1 0.0 0.0 0 0 1 0 0 0
D. Tapp 2 1 0.0 0.0 0 0 0 0 0 0
C. Cole 1 2 0.0 0.0 0 1 0 0 0 0
J. Wilson 1 1 0.0 0.0 0 0 1 0 0 0
L. Laury 1 0 0.0 0.0 0 0 0 0 0 0
R. Bryant 1 0 0.0 0.0 0 0 0 0 0 0
C. Redding 1 0 0.0 0.0 0 0 0 0 0 0
D. Butler 1 0 0.0 0.0 0 0 0 0 0 0
K. Jennings 1 0 0.0 0.0 0 0 1 0 0 0
M. Unger 1 0 0.0 0.0 0 0 0 0 0 0
D. Lewis 1 0 0.0 0.0 0 0 0 0 0 0
W. Herring 0 1 0.0 0.0 0 0 0 0 0 0
N. Reed 0 1 0.0 0.0 0 0 0 0 0 0
O. Schmitt 0 1 0.0 0.0 0 0 0 0 0 0
And formatted;
[tdo=11]Seahawks Defensive Stats[/tdo]
It takes some work to do the formatting (just as it does in HTML) but the results are well worth it on a readability level alone. Not to mention, it adds a little something to the post. This is a pretty decent sized table, so the bbcode gets a little messy when writing it out, so be prepared for the work.
The BBCode for creating tables is;
would yield...
[tdo=11]Seahawks Defensive Stats[/tdo]
Continuing on;
Resulting in;
Each successive row just contains TABLE CELLS, 11 each row, so each row would look something like the following;
Resulting in;
Start putting it all together;
Resulting in;
[tdo=11]Seahawks Defensive Stats[/tdo]
Experiment with it all, and use your preview button to see how it's all coming together...
Let's take that data and put it into a table using BBCode...
Here is the data unformatted;
Seattle Tack Ast Sack Yds FFum FumR PD Int Yds IntTD
K. Lucas 7 0 0.0 0.0 0 0 0 0 0 0
D. Hawthorne 5 3 2.0 7.0 1 0 1 0 0 0
L. Hill 5 0 0.0 0.0 0 0 0 0 0 0
J. Babineaux 4 2 0.0 0.0 0 0 0 0 0 0
M. Trufant 4 0 0.0 0.0 0 0 0 0 0 0
D. Grant 2 2 0.0 0.0 0 0 1 0 0 0
B. Mebane 2 2 0.0 0.0 0 0 0 0 0 0
L. Jackson 2 1 0.0 0.0 0 0 0 0 0 0
A. Curry 2 1 0.0 0.0 0 0 1 0 0 0
D. Tapp 2 1 0.0 0.0 0 0 0 0 0 0
C. Cole 1 2 0.0 0.0 0 1 0 0 0 0
J. Wilson 1 1 0.0 0.0 0 0 1 0 0 0
L. Laury 1 0 0.0 0.0 0 0 0 0 0 0
R. Bryant 1 0 0.0 0.0 0 0 0 0 0 0
C. Redding 1 0 0.0 0.0 0 0 0 0 0 0
D. Butler 1 0 0.0 0.0 0 0 0 0 0 0
K. Jennings 1 0 0.0 0.0 0 0 1 0 0 0
M. Unger 1 0 0.0 0.0 0 0 0 0 0 0
D. Lewis 1 0 0.0 0.0 0 0 0 0 0 0
W. Herring 0 1 0.0 0.0 0 0 0 0 0 0
N. Reed 0 1 0.0 0.0 0 0 0 0 0 0
O. Schmitt 0 1 0.0 0.0 0 0 0 0 0 0
And formatted;
Player | Tack | Ast | Sack | Yds | FFum | FumR | PD | Int | Yds | IntTD |
---|---|---|---|---|---|---|---|---|---|---|
K. Lucas | 7 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
D. Hawthorne | 5 | 3 | 2.0 | 7.0 | 1 | 0 | 1 | 0 | 0 | 0 |
L. Hill | 5 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
J. Babineaux | 4 | 2 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
M. Trufant | 4 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
D. Grant | 2 | 2 | 0.0 | 0.0 | 0 | 0 | 1 | 0 | 0 | 0 |
B. Mebane | 2 | 2 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
L. Jackson | 2 | 1 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
A. Curry | 2 | 1 | 0.0 | 0.0 | 0 | 0 | 1 | 0 | 0 | 0 |
D. Tapp | 2 | 1 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
C. Cole | 1 | 2 | 0.0 | 0.0 | 0 | 1 | 0 | 0 | 0 | 0 |
J. Wilson | 1 | 1 | 0.0 | 0.0 | 0 | 0 | 1 | 0 | 0 | 0 |
L. Laury | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
R. Bryant | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
C. Redding | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
D. Butler | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
K. Jennings | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 1 | 0 | 0 | 0 |
M. Unger | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
D. Lewis | 1 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
W. Herring | 0 | 1 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
N. Reed | 0 | 1 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
O. Schmitt | 0 | 1 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
It takes some work to do the formatting (just as it does in HTML) but the results are well worth it on a readability level alone. Not to mention, it adds a little something to the post. This is a pretty decent sized table, so the bbcode gets a little messy when writing it out, so be prepared for the work.
The BBCode for creating tables is;
Code:
The first portion of the table is a heading spanning the entire table. It consists of;
[table] - Opens the TABLE
[tr] - Opens the first TABLE ROW
[tdo=11] - Opens the TABLE HEADING and defines that it will span 11 Columns
Seahawks Defensive Stats
[/tdo] - Closes the TABLE HEADING
[/tr] - Closes the TABLE ROW
[/table] - Closes the TABLE
So, typing;
[table][tr][tdo=11]Seahawks Defensive Stats[/tdo][/tr][/table]
Continuing on;
Code:
The second row of the table, has all of the field headings in it, and consists of
[tr] - Opens the next TABLE ROW
[th] - Opens the first TABLE FIELD HEADING
Player
[/th] - Closes the first TABLE FIELD HEADING...
[/tr]
This ROW has 11 TABLE FIELD HEADINGS in it, so the all have to be represented BEFORE you can close out the row. So, the bbcode for ROW 2 would be;
[tr][th]Player[/th][th]Tack[/th][th]Ast[/th][th]Sack[/th][th]Yds[/th][th]FFum[/th][th]FumR[/th][th]PD[/th][th]Int[/th][th]Yds[/th][th]IntTD[/th][/tr]
Player | Tack | Ast | Sack | Yds | FFum | FumR | PD | Int | Yds | IntTD |
---|
Each successive row just contains TABLE CELLS, 11 each row, so each row would look something like the following;
Code:
[tr] - Opens the next TABLE ROW
[td] - Opens the first TABLE CELL
5
[/td] - Closes the first TABLE CELL...
[/tr]
For and entire row that looks like;
[tr][td]K. Lucas[/td][td]7[/td][td]0[/td][td]0.0[/td][td]0.0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][/tr]
K. Lucas | 7 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
Start putting it all together;
Code:
The first 3 rows of the table together;
[table][tr][tdo=11]Seahawks Defensive Stats[/tdo][/tr][tr][th]Player[/th][th]Tack[/th][th]Ast[/th][th]Sack[/th][th]Yds[/th][th]FFum[/th][th]FumR[/th][th]PD[/th][th]Int[/th][th]Yds[/th][th]IntTD[/th][/tr][tr][td]K. Lucas[/td][td]7[/td][td]0[/td][td]0.0[/td][td]0.0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][td]0[/td][/tr][/table]
Player | Tack | Ast | Sack | Yds | FFum | FumR | PD | Int | Yds | IntTD |
---|---|---|---|---|---|---|---|---|---|---|
K. Lucas | 7 | 0 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 |
Experiment with it all, and use your preview button to see how it's all coming together...