Mod The Sims

Mod The Sims (https://modthesims.info/index.php)
-   Site News (https://modthesims.info/forumdisplay.php?f=36)
-   -   Additional table bbcode options available (https://modthesims.info/showthread.php?t=608381)

Tashiketh 5th Mar 2018 3:12 PM

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 [ ]

Heading1Heading 2Heading 3
Cell 1Cell 2Cell 3
Cell 1Cell 2Cell 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 [ ]

Header1Header Span 2
Cell 1Cell 1Cell 1
Cell Span 3
Cell Span 3
Span 3
Cell Span 2Cell 1
Cell 1 Cell Span 2
Cell Span 3
Cell 1Cell Span 2


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

Regards,
T


All times are GMT +1. The time now is 3:41 AM.

Powered by: vBulletin Version 3.0.14 · Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.