Constructing tables for posting in the forums.

Discussion in 'Feedback and Suggestions' started by studiot, Jan 19, 2015.

  1. studiot

    Thread Starter AAC Fanatic!

    Nov 9, 2007
    5,005
    513
    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: Jan 19, 2015
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    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 (Text):
    1.  
    2. [table]row 1, item 1|row 1, item 2|row 1, item 3
    3. row 2, item 1|row 2, item 2|row 2, item 3
    4. row 3, item 1|row 3, item 2|row 3, item 3
    5. [/table]
    6.  
    Yields:
    Column 1 Column 2 Column 3
    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.
     
  3. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    And when you use table=nohead :

    Code (Text):
    1.  
    2. [table=nohead]row 1, item 1|row 1, item 2|row 1, item 3
    3. row 2, item 1|row 2, item 2|row 2, item 3
    4. row 3, item 1|row 3, item 2|row 3, item 3
    5. [/table]
    6.  
    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 likes this.
  4. studiot

    Thread Starter AAC Fanatic!

    Nov 9, 2007
    5,005
    513
    shell number Electrons in full shell
    1 1
    2 8
    3 18
    4 32
    5 50
     
  5. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    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 (Text):
    1. [table=head] Resistors |Transistors | Capacitors
    2. row 1, item 1|row 1, item 2|row 1, item 3
    3. row 2, item 1|row 2, item 2|row 2, item 3
    4. row 3, item 1|row 3, item 2|row 3, item 3
    5. [/table]
     
Loading...