Need help with Table bbcode? Learn how to use it like a pro!

  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Messages
19,952
Reaction score
11,043
The Table bbcode works exactly like the html tags. You have table, th, tr, td. Just replace the html brackets <> without 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

Cell 1Cell 2
Cell 3Cell 4
Cell 5Cell 6

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:
Physics news on Phys.org
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.
Cell 1
Cell 2
Cell 3
Cell 4
Cell 5Cell 6

more text
 
  • Like
Likes   Reactions: Greg Bernhardt
Sometimes the row spacing gets a little bit wacky:

Name
Sample
LaTeX code
Blackboard bold
[itex]\mathbb{ABCDE}[/itex]
[itex]\mathbb{ABCDE}[/itex]
Calligraphic
[itex]\mathcal{ABCDE}[/itex]
[itex]\mathcal{ABCDE}[/itex]
Fraktur
[itex]\mathfrak{ABCDE}[/itex]
[itex]\mathfrak{ABCDE}[/itex]
Sans serif
[itex]\mathsf{ABCDE}[/itex]
[itex]\mathsf ABCDE}[/itex]
Roman (upright)
[itex]\mathrm{ABCDE}[/itex]
[itex]\mathrm{ABCDE}[/itex]
Bold
[itex]\mathbf{ABCDE}[/itex]
[itex]\mathbf{ABCDE}[/itex]
Typewriter
[itex]\mathtt{ABCDE}[/itex]
[itex]\mathtt{ABCDE}[/itex]
[td] [/td]
[td][/td]
 
  • Like
Likes   Reactions: Greg Bernhardt
Does this support rowspan? Let's see...

NameSample
LaTeX code
Infinity
[itex]\infty[/itex]
\infty
[td] [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]


I guess not. :(
 
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]