Weblog: June 28, 2004

Entries

Weblog entries posted on this day.

This Day In History

Posted
June 28 2004

Well, not specifically this day. Any day, actually.

I wanted to add something to the daily archive pages today: something like a This Day In History link... an external one, that is.

The first thing I did was Google for "This Day in History". As is oftentimes the case, the first result showed to be very convenient; This Day in History.

I recognized the site (I've been there before), but I didn't really like the interface. This didn't stop me from exploring its potentials though. What did bring an abrupt end to this quest was their URL structure—the URL for this day (June 28), for example, looks like this:

http://www.historychannel.com/tdih/tdih.jsp?month=10272958&day=10272993&cat=10272946

Besides the obvious fact that this is ugly, it also makes it near impossible for me to write something that creates automated links to their pages, unless I unravel their weird date encryption (if they use any—they actually look like auto increments) that I don't care about it. I decided to seek my fortune elsewhere.

This time, I let Google be, and jumped straight to a site I know and trust; a site of which I know it has a this day in time thingy, and has pretty URLs, too.

I went to the Main page, clicked a date link, read the URL in the address bar, and could see the code right before my eyes:

<cite><a href="http://en.wikipedia.org/wiki/<$MTArchiveDate format="%B_%d"$>">This day in history</a></cite>

I put the code in my MT Daily Archives template, and all was bliss.

External

This day, elsewhere.