Tables

kiror

Fuzzy Mirror
#1
A table is a simple thing to implement in bbcode and may improve article quality because some information can be represented in a better way using tables.

This is an example of table generated with an online tool:

Code:
[table]
[tr]
  [th]Action[/th]
  [th]Person 1 likes doing it?[/th]
  [th]Person 2 likes doing it?[/th]
[/tr]
[tr]
  [td]Sleep[/td]
  [td]Yes[/td]
  [td]No[/td]
[/tr]
[tr]
  [td]Wakeup[/td]
  [td]No[/td]
  [td]Yes[/td]
[/tr]
[/table]
[table]

[tr]

[th]Action[/th]

[th]Person 1 likes doing it?[/th]

[th]Person 2 likes doing it?[/th]

[/tr]

[tr]

[td]Sleep[/td]

[td]Yes[/td]

[td]No[/td]

[/tr]

[tr]

[td]Wakeup[/td]

[td]No[/td]

[td]Yes[/td]

[/tr]

[/table]

An interesting thing about the implementation is that it does have correspondence "one to one", as you can see in the HTML below:

Code:
<table>
<tr>
  <th>Action</th>
  <th>Person 1 likes doing it?</th>
  <th>Person 2 likes doing it?</th>
</tr>
<tr>
  <td>Sleep</td>
  <td>Yes</td>
  <td>No</td>
</tr>
<tr>
  <td>Wakeup</td>
  <td>No</td>
  <td>Yes</td>
</tr>
</table>
 

Naia

irl sonic
Staff member
Administrator
#2
Hello,

This is something I am looking into implementing. There are several ways to implement tables on Xenforo, and I am looking into implementing the one that would be easiest to use.