Jump to content

Table BB Codes


Recommended Posts

Is there a way to add table bb codes in the text here in the forum or would it be possible to enable this feature (maybe there is a mod) ?

I failed to add something like the following example:

[table]
[tr]
[th]Name[/th]
[th]Age[/th]
[/tr]
[tr]
[td]John[/td]
[td]65[/td]
[/tr]
[tr]
[td]Gitte[/td]
[td]40[/td]
[/tr]
[tr]
[td]Sussie[/td]
[td]19[/td]
[/tr]
[/table]

midoras signature.gif

Link to comment
Share on other sites

Two questions:

1) Why do you need them?

 

My main reason is to create a more compact layout of descriptions. In the moment the text flow if just top to bottom with indents. OK sometimes I would add a real table too.

 

 

2) What's Sussie's phone number?

 

++41 40 611 ...  (the rest is on me ;-)

midoras signature.gif

Link to comment
Share on other sites

As far as I know HTML codes are disabled.

I did try this sort of BB code modification very recently. The table shows up fine, but the fields are not editable. I'll send you a PM...

Link to comment
Share on other sites

Ok, we've sorted out some basic table tags to use on the forum.

[table][row][cell]cell1[/cell][cell]cell2[/cell][cell]cell3[/cell][/row][row][cell]cell4[/cell][cell]cell5[/cell][cell]cell6[/cell][/row][/table]

generates this, rather plain looking but functional table..

cell1 cell2 cell3
cell4 cell5 cell6


You can alter the text within the table with normal forum BB codes. Like this:
cell1 cell2 cell3
cell4 cell5 cell6

 

Usage:  

 

Cell tags need to be nested inside a set of Row tags.  You can use multiple Cells inside a single row.

Row tags need to be nested inside a set of Table tags.  You can use multiple Rows in a table.

 

I recommend placing the entire table on a single line.  The forum adds line-feeds after the table if you spread the tags over multiple lines.

 

 

  • Upvote 4
Link to comment
Share on other sites

Cool. I see it's generating a table with a 60% width. That doesn't look good on high resolutions. Would you be willing to change the table width to auto?

Parameter

Value

Angle 35 degrees
Brush Width 20

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Auto will maximize the width within the parent container (inside the margins, padding, etc...,).  Are you sure that's going to translate well?  A single column table is always going to be massively wide for example.  WRONG!

 

60% was a trade off - wide enough to have several readable columns, but not so wide that one or two columns look silly. 

Link to comment
Share on other sites

interesting...

Could make tutorials a little tidier in some cases, but it's kinda big and clunky-looking.

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

This doesn't look maximized to me.

 

Point conceded.  I'll investigate...

Link to comment
Share on other sites

Ok let's try this... Same tags, but using the width:auto styling as suggested by Toe-Head.

 

cell1 my very long cell with lots of words2 cell3
cell4 cell5 cell6

 

Tables should be shrink-wrapped to the contents :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...