Table: Difference between revisions From Online Manual

Jump to: navigation, search
m (Bot: Automated text replacement (-[ +[))
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|button=Table.gif
|button=Table.gif
|tag=table
|tag=table
|example=[table&#93;<br>[tr&#93;[td&#93;text or[/td&#93;[td&#93;more[/td&#93;[/tr&#93;<br>[tr&#93;[td&#93;BB[/td&#93;[td&#93;Code[/td&#93;[/tr&#93;<br>
|example=[table]<br>&nbsp;[tr][td]text[/td][td]or more[/td][/tr]<br>&nbsp;[tr][td]BB[/td][td]Code[/td][/tr]<br>
[/table&#93;
[/table]
|result=<table class="bbc_table">
|result=<table class="bbc_table">


<tr><td>text or</td><td>more</td></tr>
<tr><td>text</td><td>or more</td></tr>


<tr><td>BB</td><td>Code</td></tr></table>
<tr><td>BB</td><td>Code</td></tr></table>

Latest revision as of 16:15, 10 July 2013

button: Table.gif

description: A table organizes one or more lines of text into columns. It does this by organizing 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 Table.gif 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.

R1C1R1C2R1C3
R2C1R2C2R2C3
R3C1R3C2R3C3

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]text[/td][td]or more[/td][/tr]
 [tr][td]BB[/td][td]Code[/td][/tr]
[/table]

result:

textor more
BBCode



Advertisement: