This is our old blog. It hasn't been active since 2011. Please see the link above for our current blog or click the logo above to see all of the great data and content on this site.

Linker Now Lets You Pick your Ryan Braun of Choice

Posted by Sean Forman on June 3, 2011

Francisco Rodriguez, Ryan Braun and Carlos Pena have always been difficult cases for our linker. We've now come upon a solution for that.

Previously we would link Ryan Braun's name with the following.

http://www.baseball-reference.com/player_search.cgi?search=Ryan+Braun

This is now updated to:

http://www.baseball-reference.com/player_search.cgi?results=braunry01,braunry02

The id's in the results parameter are for the Pitcher Ryan Braun (Braun the lesser, braunry01) and the Brewers' Ryan Braun (Braun the greater, braunry02). Someone like Francisco Rodriguez has 8 results or so. The results are ordered by last_year played descending and length of career descending (I figure I would weight it towards active guys who have played awhile).

If you do nothing, these links will auto-forward your readers to the most popular player (as measured by all-time page views as a major leaguer) among the players with id's in that list. If there are only minor leaguers or just one player listed in results it will send you to the player page for the first id listed (which is ordered as above).

Now if you want to link directly to Ryan Braun the lesser, just delete the other Ryan Braun's id (braunry02) from the link.

http://www.baseball-reference.com/player_search.cgi?results=braunry01

And now the link sends you to the other Ryan Braun the lesser (braunry01). This will require a bit of memorization of id's, but really you will only need to do that for cases where you are linking to the lesser player with that name.

This has been rolled out already. I also added an html comment at the beginning that states the above more succinctly. The comment can remain in the post as it won't show up when published.

Sometime later today or next week, I will start using these in the page feeds, so Ryan Braun will finally have his own page feed. This may cause some players to show incorrect page feeds (mismatches of Ryan Braun news, etc), but short of artificial intelligence scanning of writer intent, I don't see a way around that.

Apologies to Braun the Lesser. I'm sure he is a better guy than the other one in every way except baseball ability. 🙂

One Response to “Linker Now Lets You Pick your Ryan Braun of Choice”

  1. Jason Winter Says:

    Would it be possible for you guys to come up with something like what Wikipedia uses? Like if I search for "Black Death," it brings up the historical plague, because that's what people are usually looking for, and then offers me a link to a list of other things titled "Black Death." That seems like a simpler method, at least from a user standpoint -- not sure what the back-end work is like.