Author Topic: Making a Table on the Forum  (Read 2822 times)

Offline Seabody

  • Global Moderator
  • Watcher
  • ******
  • Posts: 5071
Making a Table on the Forum
« on: June 29, 2011, 01:43:11 AM »
I've seen Samoht and Metro make tables for Request/Challenge Threads, and I've wondered how to do this. I know about the tags in the menu above the Post box (Above Smilies and below Bold/Italic/Underline), but whenever I try to string these together and put Data in, I've always come up with something that isn't a table. I've looked at the BB Code for a table (through quoting the post), and it all makes little or no sense to me. It just looks like a jumble of tags, letters and sometimes numbers.
So, how do you make a table? (And make sure it does not end up looking like a cat dancing the Macarena to the tune of "Blue Suede Shoes")

Offline BellaClo

  • Immortal
  • *****
  • Posts: 505
  • Has entered city planning mode
    • Reticulated Plumbobs
Re: Making a Table on the Forum
« Reply #1 on: June 29, 2011, 03:14:49 AM »
I just looked at Metro's world ranking table and here are the tags (I add space so they are visible).

[ table] & [ /table] to start / end the table in your post (this is the simple grid button on the second row),

[ tr] & [ /tr] to start / end a line in the table (second button with row highlighted in blue),

[ td] & [ /td] for each column entry within a line (3rd button with just a cell highlighted).



Sounds easy like that? Now I'm going to make a fool of myself and put a table here below  ;)

row 1 / column 1row 1 / column 2
row 2 / column 1row 2 / column 2

Here is the code used:
[ table]
[ tr]  [ td]row 1 / column 1[ /td]    [ td]row 1 / column 2[ /td]  [ /tr]
[ tr]  [ td]row 2 / column 1[ /td]    [ td]row 2 / column 2[ /td]  [ /tr]
[ /table]


Ok, so far it works but it doesn't look as good as the original. From what I see, Metro just added empty space after the first entry to enlarge the first column.

row 1 / column 1          row 1 / column 2
row 2 / column 1row 2 / column 2

Here, I just added then spaces after "row 1 / column 1".

Modified code:
[ table]
[ tr]  [ td]row 1 / column 1          [ /td]    [ td]row 1 / column 2[ /td]  [ /tr]
[ tr]  [ td]row 2 / column 1[ /td]  [ td]row 2 / column 2[ /td]  [ /tr]
[ /table]

Looking forward your next posts with shiny tables! And thank you for posting this question, I learned something too.
Follow me @ RETICULATED PLUMBOBS and Happy Simming!



Registered members do not see ads on this Forum. Register here.

Offline Seabody

  • Global Moderator
  • Watcher
  • ******
  • Posts: 5071
Re: Making a Table on the Forum
« Reply #2 on: June 30, 2011, 12:27:26 AM »
Okay, now I'm going to attempt to replicate your table, BellaClo.

row 1 / column 1           row 1 / column 2         
row 2 / column 1           row 1 / column 2         

How's it going to look?


EDIT after viewing the table:
Looks good! So I assume that Metro would've just added extra [ tr] and [ td] cells for each participant, right?

EDIT 2: And  proof for myself that I can do it...

Hi           I'm Phil
But         You can call me Phillip

Offline BellaClo

  • Immortal
  • *****
  • Posts: 505
  • Has entered city planning mode
    • Reticulated Plumbobs
Re: Making a Table on the Forum
« Reply #3 on: June 30, 2011, 02:35:12 AM »
Congrats!

I think we've just made our début in the happy world of the table maker. There is a touch of "avant-garde" in yours, lovely ;).

(It's morning here and 1st coffee cup's stupid humor - have a nice day Seabody)
Follow me @ RETICULATED PLUMBOBS and Happy Simming!

Online Metropolis Man

  • Administrator
  • Watcher
  • ******
  • Posts: 11529
Re: Making a Table on the Forum
« Reply #4 on: June 30, 2011, 07:14:05 AM »
Congrats, Seabody! Lol. Yeah, tables drove me bonkers when I first started running events. If you look at the pre-Tournament events (late summer and fall of 2009) in the Graveyard there are no tables. Tables definitely make things look nicer and easier to read.