Constructing tables for posting in the forums.

Thread Starter

studiot

Joined Nov 9, 2007
4,998
Since I joined AAC, I have often wanted to be able to post a simple table.

Can anyone offer a simple way to do this for non programmers?

Even a standard that cou be copied and unused left balnk would be better than none.
 
Last edited:

tshuck

Joined Oct 18, 2012
3,534
I spent some time trying to figure out out a few weeks back, but I couldn't figure out how to do a colspan and label the headers.

Xenforo doesn't seem to support tables natively, so there must be some plugin, knowing which may make it easier to figure out the syntax.

For basic use:
Code:
[table]row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3
[/table]
Yields:
row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3

The columns are separated by the pipe character, '|', and rows are separated by a newline.
 

bertus

Joined Apr 5, 2008
22,921
Hello,

And when you use table=nohead :

Code:
[table=nohead]row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3
[/table]
Will give you:
row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3

Bertus
 

tshuck

Joined Oct 18, 2012
3,534
It also seems that explicitly stating there is a header makes the first for the column headers:

Resistors |Transistors | Capacitors
row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3

Code:
[table=head] Resistors |Transistors | Capacitors
row 1, item 1|row 1, item 2|row 1, item 3
row 2, item 1|row 2, item 2|row 2, item 3
row 3, item 1|row 3, item 2|row 3, item 3
[/table]
 
Top