Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Explaining Jeremy Lin's Early, Surprising Success

How to EASILY make tables for Fanposts

Nothing I have found on SBNation has been anywhere as frustrating as making tables for fanposts. It simply just didn't work for me no matter what I tried. After a lot of trial, practice, and googling I will share my knowledge with you all.

Star-divide

Everything I will be using is free and pretty basic. First things first is you need a spreadsheet. I recommend using Google Documents. I like because it is simple, free, easy to share info on, and a lot of info already on. For my example of the table. I am going to use 2010 UZR Projections.

1. Go to File -> Download As -> CSV (this will show up as an excel file if you have excel installed)

2. Go to the Folder where you download the file. Right Click on it and Open With -> Notepad

3. It is going to look like a mess with your data and commas. Copy the data out of notepad and paste into the box here. Hit Submit.

4. Now that should make it into a HTML table for you. From here simply click on the "HTML View" . Copy the html from box and copy it here. It should look like this when you are done

 

MLB ID Name Position Projected UZR Number of Games at Position in Last 4 Years First Name Last Name
2187 Reggie Abercrombie CF -1.9 114 Reggie Abercrombie
945 Bobby Abreu RF -12.1 587 Bobby Abreu
4519 Russ Adams 2B -2.2 52 Russ Adams
261 Moises Alou RF -2.1 81 Moises Alou
261 Moises Alou LF -2.4 108 Moises Alou
1 Alfredo Amezaga CF 4.6 255 Alfredo Amezaga
6144 Brian Anderson CF 0.5 298 Brian Anderson
6032 Josh Anderson CF -1.0 77 Josh Anderson
2 Garret Anderson LF -3.6 385 Garret Anderson

 

Pretty basic looking table but I am going to show you how to spruce it up a little bit. First off lets add a border. Simply when you see the code <table align="left" width="100%%"> add <table border="1"> after it. 

Now lets make those headers stand out a little more. Headers are simply the first row of the table explaining what is underneath. In my example it is 

 

<tr>

<td>MLB ID</td>

<td>Name</td>

<td>Position</td>

<td>Projected UZR</td>

<td>Number of Games at Position in Last 4 Years</td>

<td>First Name</td>

<td>Last Name</td>

</tr>

 

Now all you have to do make the headers stand out is replace the td to th so it looks like this

 

<tr>

<th>MLB ID</th>

<th>Name</th>

<th>Position</th>

<th>Projected UZR</th>

<th>Number of Games at Position in Last 4 Years</th>

<th>First Name</th>

<th>Last Name</th>

</tr>

 

Now this what the table looks like with the changes done. 

MLB ID Name Position Projected UZR Number of Games at Position in Last 4 Years First Name Last Name
2187 Reggie Abercrombie CF -1.9 114 Reggie Abercrombie
945 Bobby Abreu RF -12.1 587 Bobby Abreu
4519 Russ Adams 2B -2.2 52 Russ Adams
261 Moises Alou RF -2.1 81 Moises Alou
261 Moises Alou LF -2.4 108 Moises Alou
1 Alfredo Amezaga CF 4.6 255 Alfredo Amezaga
6144 Brian Anderson CF 0.5 298 Brian Anderson
6032 Josh Anderson CF -1.0 77 Josh Anderson
2 Garret Anderson LF -3.6 385 Garret Anderson

 

I hope this fanpost helps some people out who not to long ago were in a situation where I was. 

Comment 14 comments  |  11 recs  | 

Do you like this story?

Comments

Display:

very nice

Of course, hope means being cut down on some street corner, as you run like mad, by a random bullet.

by prophetjohn on Nov 21, 2009 5:40 PM EST reply actions  

A slightly modified alternative

If you want to do some table formatting but don’t want to edit the HTML directly as Flim did above, you can use a slightly modified procedure.

The first step is to make your table in google docs as a document (not as a spreadsheet). To do so, create a new document then insert→table. You can format this table however you like: add bold, italics, color, links, etc.

To extract the HTML for the table, go edit→Edit HTML

Copy everything from the HTML view between the < table> and < / table> tags, including the table tags themselves (it’ll be almost the entire document except for a couple < div> tags, probably).

You can then post that HTML into the fanpost as Flim described, with all the formatted goodness intact.

by brackenthebox on Nov 23, 2009 8:30 AM EST reply actions  

google docs is a pretty good html editor in general

For any blog work I do, I generally compose it in a google document, then grab the html as I described. It handles all the formatting, links, image embedding, etc, very easily.

by brackenthebox on Nov 23, 2009 10:34 AM EST up reply actions  

wow

even better

Of course, hope means being cut down on some street corner, as you run like mad, by a random bullet.

by prophetjohn on Nov 23, 2009 6:28 PM EST up reply actions  

Open office

Though I don’t know about the SBN editor there.

They say that it's never too late, but you don't get any younger...

by Valatan on Nov 23, 2009 9:24 PM EST up reply actions  

You could also use this

http://www.bagism.com/tablemaker/

It let’s you copy and past from excel (or probably open office) and you can choose borders and headers.

by vivaelpujols on Nov 24, 2009 1:18 AM EST reply actions  

Thanks - I was not aware that one could embed HTML like this.

Well, I never heard it before, but it sounds uncommon nonsense.
- The Mock Turtle, Alice in Wonderland by Lewis Carroll -

by eths on Nov 26, 2009 12:45 PM EST reply actions  

Comments For This Post Are Closed


User Tools

The Internet's #1 St. Louis Cardinals blog.

FanPosts

Community blog posts and discussion.

Recommended FanPosts

N1046613005_8392_small
Our 2010-2011 strays
649494__1__small
Hall of WAR: Part 2

Recent FanPosts

Dsc01844_small
Cardinals take the Governor's Joplin Challenge, will help build 35 homes for torando victims
St-louis-cardinals-script_small
Best Cardinals of All-Time - Relief Pitching Edition
St-louis-cardinals-script_small
Best Cardinals of All-Time - Starting Pitching Edition
Small
Two Trades That Set the Cards Back in the 70s
Nyc_small
Cardinals Offense vs. Reds Offense - 2012
Nyc_small
Cardinals Rotation vs. Reds Rotation - 2012
St-louis-cardinals-script_small
Best Cardinals by Position - Center Fielders
St-louis-cardinals-script_small
Best Cardinals by Position - Corner Outfielders

+ New FanPost All FanPosts >


Managers

Jack_benny__1__small DanUpBaby

Editors

Bendermad_small azruavatar

Trigun_001_small the red baron

Images_small tom s.

Authors

1989_bgh_cropped_small bgh

Valverde_medium_small vivaelpujols