#1
5th Mar 2018 at 3:12 PM
Last edited by Tashiketh : 5th Mar 2018 at
3:23 PM.
Posts: 8,232
Thanks: 89068 in 21 Posts
28 Achievements
View My Journal
Additional table bbcode options available
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:
Code:
{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
Code:
{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 | Header Span 2 |
Cell 1 | Cell 1 | Cell 1 |
Cell Span 3 |
Cell Span 3 |
Span 3 |
Cell Span 2 | Cell 1 |
Cell 1 | Cell Span 2 |
Cell Span 3 |
Cell 1 | Cell Span 2 |
Hopefully this should help you in having better looking tables and layouts on the site!
Regards,
T
Story books are full of fairy tales, of Kings and Queens, and the bluest skies.