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

  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
AI Thread Summary
The Table bbcode functions similarly to HTML tags, using table, th, tr, and td elements, with brackets replaced accordingly. It's important to keep all table tags on one line to prevent formatting issues, as line breaks can disrupt the table's appearance in posts. Line breaks can be added at the end of cells without affecting the display, improving code readability. The discussion also touches on quirks with row spacing and the limitations of rowspan support in the current editor. Overall, understanding these nuances is essential for effectively using Table bbcode.
Messages
19,774
Reaction score
10,728
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 Greg Bernhardt
Sometimes the row spacing gets a little bit wacky:

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

NameSample
LaTeX code
Infinity
\infty
\infty
[td] [tr][td]Planck's constant
[/td][td]\hbar
[/td][td]\hbar
[/td][/tr][tr][td rowspan=2]Plus or minus
[/tr][/td][tr][td]\pm
[/td][td]\pm
[/td][/tr][td]\mp
[/td][td]\mp
[/td][/tr][tr][td]Parallel
[/td][td]\parallel
[/td][td]\parallel
[/td][/tr][tr][td]Perpendicular
[/td][td]\perp
[/td][td]\perp
[/td][/tr][tr][td]For all
[/td][td]\forall
[/td][td]\forall
[/td][/tr][tr][td]There exists
[/td][td]\exists
[/td][td]\exists
[/td][/tr][tr][td]Ellipsis
[/td][td]\dots,\cdots,\vdots,\ddots
[/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]
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...

Similar threads

Replies
3
Views
2K
Replies
10
Views
3K
Replies
1
Views
2K
Replies
0
Views
5K
Replies
4
Views
4K
Replies
11
Views
6K
Back
Top