A quick guide to using tables (I have played around with these and do not have any access to documentation, so someone out there might do better).
NOTE: carriage returns (the enter key) are very important each row is a new line.
NOTE: all of the quotes below contain a space between the / and table [/ table] in the closing block so you can see the code - you can copy and paste these examples and just remove the extra space.
Start the line with the table tag and then type the value you wish to appear in the first cell, next use the pipe character (shift + \) and type the value you want to appear in the next cell and so on. Once you do not use enter to go the the next line - these cells will all appear on a single row - note you do not end the line with a pipe. And then end the table block [/ table] - either on the same or next line.
both gives you:
cell1|cell2|cell3
gives you:
cell1|cell2|cell3|cell4|cell5|cell6|cell7|cell8|cell9
WRONG: if you have the table tag on one line and the cell text on the next line like this:
you get:
cell1|cell2|cell3
This is because the first line with the table tag determines the number of columns the table will have - since there is nothing except the table tag on this line only a single column is generated.
Now we know how to create a single row of data - adding new rows is very simple - after you have defined the amount of columns you want (the first line) - just hit the enter key and enter a new row - there should be the same number of cells in each row.
gives you:
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
gives you:
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
Each table row that is produced alternated in colour so you can distinguish the rows - but what if you want to add a proper looking header to your table?
This is achieved by placing ="head" in the opening table tag, like so:
gives you:
Heading1|Heading2|Heading3
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
If you need to leave cells blank you just omit the text you would have put in and always remember the | (pipes) and carriage returns must remain.
Say I want to have a table which compares a car and a bike against having wheels, engine and pedals - I want to have car and bile on the Y and Wheels, Engine and Pedals on the X - firstly I need to have an empty cell in the top left.
To do this we just omit the text for this cell but keep the pipe.
gives you:
|Wheels?|Engine?|Pedals?
Car|X|X|
BIke|X| |X
In the following examples you will need to look closely to see the empty cells
Notice the first line after the table tag has an empty space before the first | - this tells the table to define 3 columns and leave the first empty:
|Wheels?|Engine?|Pedals?
The second line - the car has a trailing pipe with a blank space after it - this tells the table to leave that cell empty
Car|X|X|
The third line has an empty space between the pipes which tells the table to leave the 3rd cell of this row empty.
BIke|X| |X
I hope that you have found this useful and I have updated a post: www dot askaboutmoney dot com/showpost.php?p=1006396&postcount=5 for you to have a look at how it might be used.
If you have any questions, comments or issues post here and Ill answer to the best of my ability.
NOTE: I have written this based on playing with the tags, with no access to documentation as I do not have an account to access info here: www dot vbulletin dot org/forum/showthread.php?t=107985
Happy tabling!
NOTE: carriage returns (the enter key) are very important each row is a new line.
NOTE: all of the quotes below contain a space between the / and table [/ table] in the closing block so you can see the code - you can copy and paste these examples and just remove the extra space.
Start the line with the table tag and then type the value you wish to appear in the first cell, next use the pipe character (shift + \) and type the value you want to appear in the next cell and so on. Once you do not use enter to go the the next line - these cells will all appear on a single row - note you do not end the line with a pipe. And then end the table block [/ table] - either on the same or next line.
3 columns, 1 row
cell1|cell2|cell3
[/ table]
AND
cell1|cell2|cell3[/ table]
both gives you:
9 columns, 1 row
cell1|cell2|cell3|cell4|cell5|cell6|cell7|cell8|cell9
[/ table]
gives you:
WRONG: if you have the table tag on one line and the cell text on the next line like this:
incorrect format - give 1 column, 1 row
cell1|cell2|cell3
[/ table]
you get:
cell1|cell2|cell3
This is because the first line with the table tag determines the number of columns the table will have - since there is nothing except the table tag on this line only a single column is generated.
Now we know how to create a single row of data - adding new rows is very simple - after you have defined the amount of columns you want (the first line) - just hit the enter key and enter a new row - there should be the same number of cells in each row.
3 columns, 3 rows
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
[/ table]
gives you:
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
3 columns, 5 rows
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
[/ table]
gives you:
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
Each table row that is produced alternated in colour so you can distinguish the rows - but what if you want to add a proper looking header to your table?
This is achieved by placing ="head" in the opening table tag, like so:
3 columns, 5 rows - with headers
[table="head"]Heading1|Heading2|Heading3
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
[/ table]
gives you:
cellA1|cellA2|cellA3
cellB1|cellB2|cellB3
cellC1|cellC2|cellC3
cellD1|cellD2|cellD3
cellE1|cellE2|cellE3
If you need to leave cells blank you just omit the text you would have put in and always remember the | (pipes) and carriage returns must remain.
Say I want to have a table which compares a car and a bike against having wheels, engine and pedals - I want to have car and bile on the Y and Wheels, Engine and Pedals on the X - firstly I need to have an empty cell in the top left.
To do this we just omit the text for this cell but keep the pipe.
Empty cells example
|Wheels?|Engine?|Pedals?
Car|X|X|
BIke|X| |X
[/ table]
gives you:
Car|X|X|
BIke|X| |X
Notice the first line after the table tag has an empty space before the first | - this tells the table to define 3 columns and leave the first empty:
|Wheels?|Engine?|Pedals?
The second line - the car has a trailing pipe with a blank space after it - this tells the table to leave that cell empty
Car|X|X|
The third line has an empty space between the pipes which tells the table to leave the 3rd cell of this row empty.
BIke|X| |X
I hope that you have found this useful and I have updated a post: www dot askaboutmoney dot com/showpost.php?p=1006396&postcount=5 for you to have a look at how it might be used.
If you have any questions, comments or issues post here and Ill answer to the best of my ability.
NOTE: I have written this based on playing with the tags, with no access to documentation as I do not have an account to access info here: www dot vbulletin dot org/forum/showthread.php?t=107985
Happy tabling!