1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How do I insert this bb-code table in a post?

Discussion in 'Site Feedback' started by MatteM, Jun 17, 2020.

  1. MatteM

    MatteM Warlord

    Joined:
    Sep 7, 2015
    Messages:
    213
    Gender:
    Male
    Location:
    Stockholm
    Hello!

    I have generated a table in bb-code to showcase unit stats, using an online BBCode Table Generator:

    Spoiler :
    Column 1
    [tr]
    [th]Unit[/th]
    [th]Strength[/th]
    [th]Moves[/th]
    [th]Cost[/th]
    [th]Resources[/th]
    [th]Buildings[/th]
    [th]Cargo (Domain/Special)[/th]
    [th]Cargo Space[/th]
    [th]Upgrades to[/th]
    [th] Tech requirements[/th]
    [th]Collateral damage[/th]
    [th]Unitcombat[/th]
    [th]Attribute 1[/th]
    [th]Attribute 2[/th]
    [th]Attribute 3[/th]
    [th]Attribute 4[/th]
    [th]Asset [/th]
    [th]Power[/th]
    [/tr]
    [tr]
    [td]Paddle Wheel Frigate
    [/td]
    [td]10
    [/td]
    [td]3[/td]
    [td]150
    [/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Screw Frigate[/td]
    [td]Machine Tools[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Ironclad
    [/td]
    [td]22
    [/td]
    [td]4[/td]
    [td]240
    [/td]
    [td]Iron/Coal
    [/td]
    [td]Industrial Shipyard
    [/td]
    [td][/td]
    [td][/td]
    [td]Early Battleship/Armored Cruiser[/td]
    [td]Armored Warships[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Monitor
    [/td]
    [td]10
    [/td]
    [td]3[/td]
    [td]120
    [/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Torpedo Boat[/td]
    [td]Armored Warships[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Screw Frigate
    [/td]
    [td]16
    [/td]
    [td]4[/td]
    [td]200
    [/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Protected Cruiser[/td]
    [td]Screw Propellers[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Screw Sloop/Corvette
    [/td]
    [td]12
    [/td]
    [td]4[/td]
    [td]140
    [/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Protected Cruiser/Oceangoing Gunboat[/td]
    [td]Screw Propellers[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Screw Gunboat
    [/td]
    [td]8
    [/td]
    [td]3[/td]
    [td]90
    [/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Oceangoing Gunboat/Torpedo Boat[/td]
    [td]Screw Propellers[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Oceangoing Gun boat
    [/td]
    [td]14
    [/td]
    [td]4[/td]
    [td]180
    [/td]
    [td]Iron/Coal
    [/td]
    [td]Industrial Shipyard
    [/td]
    [td][/td]
    [td][/td]
    [td]Destroyer/Scout Cruiser[/td]
    [td]Imperialism[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Oceangoing Monitor
    [/td]
    [td]18
    [/td]
    [td]4[/td]
    [td]200
    [/td]
    [td]Iron/Coal
    [/td]
    [td]Industrial Shipyard
    [/td]
    [td][/td]
    [td][/td]
    [td]Early Battleship/Armored Cruiser[/td]
    [td]Armored Warships[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Floating battery[/td]
    [td]?[/td]
    [td]3[/td]
    [td]?[/td]
    [td]Iron/Coal
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td]Coastal Defence Ship[/td]
    [td]Armored Warships[/td]
    [td][/td]
    [td]Steam[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Clipper Transport[/td]
    [td]6[/td]
    [td]4[/td]
    [td]120[/td]
    [td][/td]
    [td][/td]
    [td]Land units[/td]
    [td]2[/td]
    [td]Steamer Transport[/td]
    [td]Machine Tools[/td]
    [td][/td]
    [td]Colonial/Age of Sail[/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]
    [tr]
    [td]Steamer Transport[/td]
    [td]8[/td]
    [td]4[/td]
    [td]160[/td]
    [td]Iron/Coal
    [/td]
    [td]Industrial Shipyard[/td]
    [td]Land units[/td]
    [td]3 [/td]
    [td]Troop Ship[/td]
    [td]Industrialism
    [/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [td][/td]
    [/tr]


    However it doesn't show up as a proper table at all. I tried different options in the reply-function but nothing works, any tips?

    /Matte
     
    Last edited by a moderator: Jun 17, 2020
  2. Browd

    Browd Dilettante Administrator

    Joined:
    Aug 5, 2012
    Messages:
    11,737
    Gender:
    Male
    Location:
    Rural Vermont
    The Xenforo BBCode implementation is not standard, off-the-shelf BBCode, so the tool you appear to have used to generate your table is not playing well with Xenforo, yielding the result you displayed. For a table that works at CFC, take a look at the following code:
    Code:
    [table=head]|[B]Quick[/B]|[B]Standard[/B]|[B]Epic[/B]|[B]Marathon[/B]
    Initial Pantheon requirement| 6 faith|10 faith|15 faith|30 faith
    Increment for next Pantheon|3 faith|5 faith|7 faith|15 faith
    Threshold for first Great Prophet|134 faith|200 faith|300 faith|600 faith
    Increment for subsequent Great Prophets|Multiple of +67 faith for each increment (201, 335, 536, ...)|Multiple of +100 faith for each increment (300, 500, 800, ...)|Multiple of +150 faith for each increment (450, 750, 1200, ...)|Multiple of +300 faith for each increment (900, 1500, 2400, ...)
    Base Per City Pressure|9|6|4|2[/table]
    Which yields the following display:

    Quick Standard Epic Marathon
    Initial Pantheon requirement 6 faith 10 faith 15 faith 30 faith
    Increment for next Pantheon 3 faith 5 faith 7 faith 15 faith
    Threshold for first Great Prophet 134 faith 200 faith 300 faith 600 faith
    Increment for subsequent Great Prophets Multiple of +67 faith for each increment (201, 335, 536, ...) Multiple of +100 faith for each increment (300, 500, 800, ...) Multiple of +150 faith for each increment (450, 750, 1200, ...) Multiple of +300 faith for each increment (900, 1500, 2400, ...)
    Base Per City Pressure 9 6 4 2

    Hopefully this will help you debug your own table.
     
  3. MatteM

    MatteM Warlord

    Joined:
    Sep 7, 2015
    Messages:
    213
    Gender:
    Male
    Location:
    Stockholm

Share This Page