TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Testing BB Code

Discussion in 'Off Topic' started by Matteo, Jul 22, 2015.

  1. Matteo

    Matteo Member

    Joined:
    Jul 6, 2015
    Messages:
    167
    Location:
    EU
    #1 Matteo, Jul 22, 2015
    Last edited: Jul 22, 2015
    Let me see if this works. This is a copy and paste from Google spreadsheet. As I type this message, I see the table correctly but when I click preview, the table is gone and BB Code appears in the preview above this message editor.

    Tesla model EPA rated range (miles)
    Model S 60 208
    Model X 70D 216
    Model S 70 230
    Model S 70D 240
    Edit: It didn't work. As I edit this message the opening and closing table tags are there but they disappear once the message is posted.
     
  2. brianman

    brianman Burrito Founder

    Joined:
    Nov 10, 2011
    Messages:
    15,487
    Edit your post. Add "=" to your table tag (like below but without the extra space):
    Code:
    [table= ]
     
  3. Matteo

    Matteo Member

    Joined:
    Jul 6, 2015
    Messages:
    167
    Location:
    EU
    #3 Matteo, Jul 22, 2015
    Last edited: Jul 22, 2015
    Thanks that works. By any chance do you know how to add borders?

    The problem I have is, in the text editor there are buttons to add a table. These always work but I don't want to use them because this is a large table and I don't want to manually enter each cell. Unfortunately those tables that work (using table button) don't show their BB Code version even when you edit the message. Therefore I don't know what works in this forum. On this help page the example is not good either.
     
  4. Matteo

    Matteo Member

    Joined:
    Jul 6, 2015
    Messages:
    167
    Location:
    EU
    OK, I've figured out how to add borders after you paste from google sheets. You use the following code. Also the code view button on top left in the text editor is useful. After I switched to code view I could see what code the tables use which are created with the table buttons.

    Code:
    [TABLE="class: grid"]

    Tesla model EPA rated range (miles)
    Model S 60 208
    Model X 70D 216
    Model S 70 230
    Model S 70D 240
     

Share This Page