Here's a primer on building tables (This post lives in the "Membership Info" category, in the topic "Registration and Posting Guidelines"):
TABLES
The Philliesphans software (Discourse) allows you to create formatted tables in your posts, using standard html table syntax. (I'll refer to the html codes as "tags" in what follows.) WARNING: Not for the faint of heart; it's not trivial to master all this...but if you're patient and persistent, you'll get it!
Always remember that all html tags must be opened and closed; e.g., you have a "table" tag at the beginning of the table, and a "/table" tag at the end of the table. The first tag turns on the characteristic you want; the second tag, with the "/", turns it off again.
Also, all tags (opening and closing) must be enclosed in angle brackets; e.g. < >.
Here's a list of the various table-related tags. Keep in mind that each "open" tag should be enclosed in , and each "close" tag should be enclosed in with a front-slash as the first character inside the brackets.
- table - creates a basic table.
- tr - creates a row within your table.
- th - creates a header cell within your table row. Header cell content, by default, is boldface and centered.
- td - creates a basic data cell. content is regular font, and left-justified by default.
To set up a table, you need to use the following structure:
table
..tr (first row)
....td (or th, if you are creating a header row with column labels)
....td (or th, if you are creating a header row with column labels)
....td (or th, if you are creating a header row with column labels)
.tr (second row)
....td
....td
....td
etc.
Example:
Player |
OBP |
SLG |
OPS |
Rolen |
.380 |
.455 |
.835 |
|
Note that every tag - table, tr, th, td - MUST be properly closed (e.g., you start with < tag>, and you end with < /tag >), and in the proper order, or the tags will not be parsed correctly.
You can control the alignment of text/data in table cells as follows:
to right-align a cell, add < div align="right"> after < td>, and add < /div> before < /td>.
to center, use < div align="center"> after < td>, and add < /div> before < /td>.
to left-align, use < div align="left"> after < td>, and add < /div> before < /td>.
Tables can get pretty complex - please use the Preview function, and be sure your table (and your whole post) is working properly before you actually post it. If you need help, send me a PM.