No edit summary |
(Wordy bbc) |
||
Line 9: | Line 9: | ||
--><nowiki>&</nowiki>#91;/table<nowiki>&</nowiki>#93;<!-- | --><nowiki>&</nowiki>#91;/table<nowiki>&</nowiki>#93;<!-- | ||
--> | --> | ||
|result=<nowiki><table><tr><td>table cell contents</td></tr></table></nowiki> | |||
|description=A table organises one or more lines of text into columns. It does this by organising the text into table rows and, within each row, table data. Text is placed inside the Table Data tags to create the table. | |description=A table organises one or more lines of text into columns. It does this by organising the text into table rows and, within each row, table data. Text is placed inside the Table Data tags to create the table. | ||
Line 57: | Line 58: | ||
To add a bit of padding, add some blank Data tags (empty columns), this works better than just padding with spaces. | To add a bit of padding, add some blank Data tags (empty columns), this works better than just padding with spaces. | ||
<pre> [table] | |||
[tr] | [tr] | ||
[td]R1C1[/td][td][/td][td]R1C2[/td][td][/td][td]R1C3[/td] | [td]R1C1[/td][td][/td][td]R1C2[/td][td][/td][td]R1C3[/td] | ||
Line 67: | Line 68: | ||
[td]R3C1[/td][td][/td][td]R3C2[/td][td][/td][td]R3C3[/td] | [td]R3C1[/td][td][/td][td]R3C2[/td][td][/td][td]R3C3[/td] | ||
[/tr] | [/tr] | ||
[/table] | [/table]</pre> | ||
}} | }} | ||
[[Category:Bulletin_Board_Code]] | [[Category:Bulletin_Board_Code]] | ||
[[Category:Basic Bulletin Board Code]] | [[Category:Basic Bulletin Board Code]] |
Revision as of 21:15, 17 February 2011
description: A table organises one or more lines of text into columns. It does this by organising the text into table rows and, within each row, table data. Text is placed inside the Table Data tags to create the table.
Although the tags are based on the html <table>, <tr> and <td> tags there is no further formatting possible.
In this example a simple 3x3 table is created. Start a new topic and click the Insert Table button which adds the following code.
[table] [tr] [td][/td] [/tr] [/table]
This generates the start and end of a Table with a Table Row and Table Data inside.
Type two more Data tags within the Row then copy the Row down twice to end up with a table like this:
[table] [tr] [td][/td][td][/td][td][/td] [/tr] [tr] [td][/td][td][/td][td][/td] [/tr] [tr] [td][/td][td][/td][td][/td] [/tr] [/table]
Add text between the Data tags and you will have a formatted table:
[table] [tr] [td]R1C1[/td][td]R1C2[/td][td]R1C3[/td] [/tr] [tr] [td]R2C1[/td][td]R2C2[/td][td]R2C3[/td] [/tr] [tr] [td]R3C1[/td][td]R3C2[/td][td]R3C3[/td] [/tr] [/table]
Which displays like this.
R1C1 | R1C2 | R1C3 |
R2C1 | R2C2 | R2C3 |
R3C1 | R3C2 | R3C3 |
To add a bit of padding, add some blank Data tags (empty columns), this works better than just padding with spaces.
[table] [tr] [td]R1C1[/td][td][/td][td]R1C2[/td][td][/td][td]R1C3[/td] [/tr] [tr] [td]R2C1[/td][td][/td][td]R2C2[/td][td][/td][td]R2C3[/td] [/tr] [tr] [td]R3C1[/td][td][/td][td]R3C2[/td][td][/td][td]R3C3[/td] [/tr] [/table]
example: [table][tr][td]table cell contents[/td][/tr][/table]
result: <table><tr><td>table cell contents</td></tr></table>