Creating tables in forum posts

Forum News, Announcements and any issues you're having with the forum

Moderator: myglaren

User avatar
xantia_v6
Forum Admin Team
Posts: 7908
Joined: 09 Nov 2005, 23:03
x 512

Creating tables in forum posts

Post by xantia_v6 »

It has been noted by some users that this forum did not allow the creation of tables in posts. Unfortunately, the phpBB software does not have a wysiwyg editor which would make tables easy to add, but it is now possible (if you have a little patience) to create a table using BBCode.

Here is an example of a small table,
col a col b col c col d
data 1a data 1b data 1c data 1d
data 2a data 2b data 2c data 2d
data 3a data 3b data 3c data 3d
Which is generated by the BBCode:

Code: Select all

[table]
[tr] [th]col a[/th]   [th]col b[/th]   [th]col c[/th]   [th]col d[/th]   [/tr]
[tr] [td]data 1a[/td] [td]data 1b[/td] [td]data 1c[/td] [td]data 1d[/td] [/tr]
[tr] [td]data 2a[/td] [td]data 2b[/td] [td]data 2c[/td] [td]data 2d[/td] [/tr]
[tr] [td]data 3a[/td] [td]data 3b[/td] [td]data 3c[/td] [td]data 3d[/td] [/tr]
[/table]
As you can see, the whole table is surrounded by

Code: Select all

[table]  ... [/table]
tags
Each row is surrounded by

Code: Select all

[tr] ... [/tr] 
Each column header is surrounded by

Code: Select all

[th] ... [/th] 
Each cell is surrounded by

Code: Select all

 [td] ... [/td] 
Have fun :-D