Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Introducing Table bbcode

  1. Oct 3, 2014 #1
    The Table bbcode works exactly like the html tags. You have table, th, tr, td. Just replace the html brackets <> with out bbcode brackets [] and remember to close each element out.

    There is an icon next to the superscript to start you out. See this link for more information: https://www.physicsforums.com/help/bb-codes

    [TABLE][tr][td]Cell 1[/td][td]Cell 2[/td][/tr][tr][td]Cell 3[/td][td]Cell 4[/td][/tr][tr][td]Cell 5[/td][td]Cell 6[/td][/tr][/TABLE]

    One of the quirks with the editor is that you need to end up putting all the table tags in one line instead of nicely laid out with line breaks. The line breaks will show in the post and the table will end up being pushed far down the post.
     
    Last edited: Oct 3, 2014
  2. jcsd
  3. Oct 4, 2014 #2

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Concerning line breaks, it is possible to include them at the end of the cells, directly between content and [/td]. This way they don't influence how the post is shown, but they allow to make the source code a bit more readable.
    [TABLE][tr][td]Cell 1
    [/td][td]Cell 2
    [/td]
    [/tr][tr][td]Cell 3
    [/td][td]Cell 4
    [/td][/tr][tr][td]Cell 5[/td][td]Cell 6[/td][/tr]
    [/TABLE]

    more text
     
  4. Oct 5, 2014 #3

    jtbell

    User Avatar

    Staff: Mentor

    Sometimes the row spacing gets a little bit wacky:

    [TABLE][tr][td]Name
    [/td][td]Sample
    [/td][td]LaTeX code
    [/td][/tr][td][tr][td]Blackboard bold
    [/td][td][itex]\mathbb{ABCDE}[/itex]
    [/td][td][itex]\mathbb{ABCDE}[/itex]
    [/td][/tr][tr][td]Calligraphic
    [/td][td][itex]\mathcal{ABCDE}[/itex]
    [/td][td][itex]\mathcal{ABCDE}[/itex]
    [/td][/tr][tr][td]Fraktur
    [/td][td][itex]\mathfrak{ABCDE}[/itex]
    [/td][td][itex]\mathfrak{ABCDE}[/itex]
    [/td][/tr][tr][td]Sans serif
    [/td][td][itex]\mathsf{ABCDE}[/itex]
    [/td][td][itex]\mathsf ABCDE}[/itex]
    [/td][/tr][tr][td]Roman (upright)
    [/td][td][itex]\mathrm{ABCDE}[/itex]
    [/td][td][itex]\mathrm{ABCDE}[/itex]
    [/td][/tr][tr][td]Bold
    [/td][td][itex]\mathbf{ABCDE}[/itex]
    [/td][td][itex]\mathbf{ABCDE}[/itex]
    [/td][/tr][tr][td]Typewriter
    [/td][td][itex]\mathtt{ABCDE}[/itex]
    [/td][td][itex]\mathtt{ABCDE}[/itex]
    [/td][/tr][/td][/TABLE][td][/td]
     
  5. Oct 5, 2014 #4

    jtbell

    User Avatar

    Staff: Mentor

    Does this support rowspan? Let's see...

    [TABLE][tr]
    [td]Name[/td][td]Sample
    [/td][td]LaTeX code
    [/td][/tr][td][tr][td]Infinity
    [/td][td][itex]\infty[/itex]
    [/td][td]\infty
    [/td][/tr][tr][td]Planck's constant
    [/td][td][itex]\hbar[/itex]
    [/td][td]\hbar
    [/td][/tr][tr][td rowspan=2]Plus or minus
    [/tr][/td][tr][td][itex]\pm[/itex]
    [/td][td]\pm
    [/td][/tr][td][itex]\mp[/itex]
    [/td][td]\mp
    [/td][/tr][tr][td]Parallel
    [/td][td][itex]\parallel[/itex]
    [/td][td]\parallel
    [/td][/tr][tr][td]Perpendicular
    [/td][td][itex]\perp[/itex]
    [/td][td]\perp
    [/td][/tr][tr][td]For all
    [/td][td][itex]\forall[/itex]
    [/td][td]\forall
    [/td][/tr][tr][td]There exists
    [/td][td][itex]\exists[/itex]
    [/td][td]\exists
    [/td][/tr][tr][td]Ellipsis
    [/td][td][itex]\dots,\cdots,\vdots,\ddots[/itex]
    [/td][td]\dots,\cdots,\vdots,\ddots
    [/td][/tr][/TABLE]

    I guess not. :(
     
  6. Oct 5, 2014 #5

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Those tags are a simple replacement of [td] to <td> and so on. For vBulletin, there is a nice and more powerful table addon, I have no idea if something similar exists for XF.[/td]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Introducing Table bbcode
  1. Tables in LaTex (Replies: 4)

  2. Bbcodes (Replies: 7)

Loading...