Welcome to
Mod The Sims
Online: 1147
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 0 (Who?), Viewed: 4090 times.
Search this Thread
Old 5th Mar 2018, 3:12 PM DefaultAdditional table bbcode options available #1
Tashiketh
Original Poster

Warrior Gryphon



Join Date: May 2004
Posts: 9,798
Thanks: 85436 in 16 Posts
28 Achievements


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

Story books are full of fairy tales, of Kings and Queens, and the bluest skies.
Last edited by Tashiketh : 5th Mar 2018 at 3:23 PM.
16 users say thanks for this.
[ Click here to view a longer list ]
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.