PDA

View Full Version : Additional table bbcode options available


Tashiketh
5th Mar 2018, 3:12 PM
Hi All,

As a result of a suggestion in our Discord chat, I have added the ability to specify colspans on the bbcode table layout on MTS.

Previously, when creating a table, you only had the option for single cells, like so:


{table}
Heading1, Heading 2, Heading 3
Cell 1, Cell 2, Cell 3
Cell 1, Cell 2, Cell 3
{/table}


In the example above, change { } to [ ]


Heading1, Heading 2, Heading 3
Cell 1, Cell 2, Cell 3
Cell 1, Cell 2, Cell 3


Now, however, you can specifc the colspan of either a header or a cell, as follows:

- Prefix the cell with +X+ where X = number of columns to span. (So if you want colspan = 2 then you'd do +2+)
- or Prefix the cell with colspan=X where X = number of columns. You may also optionally use colspan=X| to get better text seperation


{table}
Header1, +2+Header Span 2
Cell 1, Cell 1, Cell 1
colspan=3 Cell Span 3
colspan=3| Cell Span 3
colspan=3|Cell Span 3
+2+ Cell Span 2, Cell 1
Cell 1, +2+ Cell Span 2
+3+Cell Span 3
Cell 1, +2+Cell Span 2
{/table}


In the example above, change { } to [ ]

Header1, +2+Header Span 2
Cell 1, Cell 1, Cell 1
colspan=3 Cell Span 3
colspan=3| Cell Span 3
colspan=3|Cell Span 3
+2+ Cell Span 2, Cell 1
Cell 1, +2+ Cell Span 2
+3+Cell Span 3
Cell 1, +2+Cell Span 2


Hopefully this should help you in having better looking tables and layouts on the site!

Regards,
T