Adding a Table to a Post

Discussion in 'Tips & Guides' started by shagratork, Jan 9, 2019.

  1. shagratork

    shagratork United Kingdom Moderator Subscriber

    Offline
    Joined:
    Aug 9, 2005
    Messages:
    9,661
    Location:
    Durham, N.E. England
    In another thread interest has been expressed in lining up sets of data.
    This is normally difficult because forum software deletes unnecessary spaces.
    So if data is attempted to be lined up using spaces, the spare spaces are automatically deleted.
    The forum coding that allows some text formatting is done using BBCode (Bulletin Board Code).
    The BBCode is a very small set of the codes found in HTML (the coding that allows web pages and applications to be constructed).

    The only BBCodes that can be used in CCS are found in the FAQ and Help sections.
    The codes are here.

    Most of the applications of BBCodes are found in the menu bar when composing a post.

    Menu Bar.jpg

    However some of the functions of BBCodes are not found in the menu.

    One of them is how to construct a Table to align data.

    SievertSvea123Green Box1965
    OptimusSvea123Red & White Box1970
    OptimusSvea123Lemon Box1972
    OptimusSvea123RRed & White Box1973
    The coding to construct the table has three sets of coding.

    The first is TABLE and /TABLE which are the instructions to start and end a Table.

    The second is TR and /TR which start and end a Row in the table.

    The third is TD and /TD which is TABLE DATA which is inserted in a Row. Each pair of TD and /TD give a Column in the Table.


    Here is the coding used to construct the above table.

    BBCode Table_1.jpg

    The spaces and indents are there so that you can more easily see how the codes are used.
    They can be missed out.


    I actually used the following code, which is the same as the one above, but set out differently.

    BBCode Table_2.jpg

    It would be good if the table lines could be transparent, but as far as I know the BBCode does not allow it.
    Other language coding, such as HTML, are supposed to be able to used within BBCoding but I have briefly tried it and could not get it to work. Others could experiment and if successful could add to this post.
     
  2. snwcmpr

    snwcmpr Subscriber

    Offline
    Joined:
    Nov 16, 2011
    Messages:
    11,850
    Location:
    Here, not There
    What a great start. I can mimic with the best of them.
    This looks like fun. I searched and saw 'th' for headings in a row.
    tr = row
    /tr = end of row
    th = heading
    /th = end of heading

    Stove Date
    Svea 123 1970
    Svea 123R 1974
     
  3. shagratork

    shagratork United Kingdom Moderator Subscriber

    Offline
    Joined:
    Aug 9, 2005
    Messages:
    9,661
    Location:
    Durham, N.E. England
    Hi Ken.

    Well done. Improvements to a table can be found in the BBCode Reference.
    I have given just a basic introduction.
     
  4. snwcmpr

    snwcmpr Subscriber

    Offline
    Joined:
    Nov 16, 2011
    Messages:
    11,850
    Location:
    Here, not There
    And a great introduction, too.
     
  5. presscall

    presscall United Kingdom Subscriber SotM Winner

    Offline
    Joined:
    Aug 25, 2009
    Messages:
    8,346
    VeryinformativeindeedTrevor
     
  6. snwcmpr

    snwcmpr Subscriber

    Offline
    Joined:
    Nov 16, 2011
    Messages:
    11,850
    Location:
    Here, not There
    VeryinformativeindeedTrevor
    BLANK BOXBLANK BOXBLANK BOXBLANK BOX
    IdefinitelyagreeJohn
     
  7. salan3

    salan3 United Kingdom Subscriber

    Offline
    Joined:
    May 9, 2007
    Messages:
    976
    Location:
    Cheshire UK
    I used to teach all this. Lol
     
  8. snwcmpr

    snwcmpr Subscriber

    Offline
    Joined:
    Nov 16, 2011
    Messages:
    11,850
    Location:
    Here, not There
    That was work, this is fun.
     
  9. Rangie

    Rangie Subscriber

    Offline
    Joined:
    Jul 25, 2012
    Messages:
    1,415
    Location:
    Caithness, Far North of Scotland
    Initially I thought that Trevor had lost the plot and was talking about these....

    rowlinson-windrush-bird-table.jpg

    Great Idea
    Worth a Play!
     
  10. shagratork

    shagratork United Kingdom Moderator Subscriber

    Offline
    Joined:
    Aug 9, 2005
    Messages:
    9,661
    Location:
    Durham, N.E. England
    At first glance, the coding for a table may look complicated.

    I have made some templates in a text editor and stored them for future use.
    The use of highlight/copy/paste makes forming the templates quick.
    Each template contains no data.

    A template can be copied and pasted into the posting window in CCS and the necessary data entered.

    Here is the sort of table that can easily be made.
    Note that its size can be changed by highlighting the table and then choosing the font size.

    STOVE WEIGHT CAPACITY PRICE
    Optimus 80 18.5 oz 0.50 pt $11.13
    Svea 123 18.0 oz 0.35 pt $12.15
    Sigg Tourist19.0 oz 0.35 pt $22.24
    Optimus 8R 25.0 oz 0.33 pt $12.14
    Optimus 99 22.0 oz 0.33 pt $15.17
    Optimus 111B 54.0 oz 1.00 pt $25.30


    STOVE WEIGHT CAPACITY PRICE
    Optimus 80 18.5 oz 0.50 pt $11.13
    Svea 123 18.0 oz 0.35 pt $12.15
    Sigg Tourist19.0 oz 0.35 pt $22.24
    Optimus 8R 25.0 oz 0.33 pt $12.14
    Optimus 99 22.0 oz 0.33 pt $15.17
    Optimus 111B 54.0 oz 1.00 pt $25.30
     
  11. Simes

    Simes Subscriber

    Offline
    Joined:
    Jul 26, 2004
    Messages:
    3,437
    Location:
    I'm on the way....
    And you can play to your hearts content Here

    Edit to say how pleased I am it actually worked.