Today in Wikipedia shows you the Wikipedia entry for today’s date
A new site I made, Today in Wikipedia, takes you to the current date’s Wikipedia entry.
Each day’s entry is a list of links to Wikipedia articles about interesting events that happened on that day as well as notable births and deaths.
If you’re looking for a new home page, or just another site to add to your daily reading, check it out.
You can try it out here:
To set it as your home page:
Firefox:
- Go to the “Tools” menu and choose “Options”
- Click the “General” tab
- Under “Home Page” enter http://todayinwikipedia.com
- Make sure “When Firefox starts” is set to “Show my home page”
Internet Explorer:
- Go to the “Tools” men and choose “Internet Options”
- In the “Home Page” box enter http://todayinwikipedia.com
To bookmark it (if you don’t want it as your home page):
- In Firefox, right-click this link – Today in Wikipedia – and choose “Bookmark This Link.”
- In Internet Explorer, right-click this link – Today in Wikipedia – and choose “Add to Favorites.”
How it works
I made Today in Wikipedia using a simple bit of Javascript to retrieve the current date, create a URL based on that date and redirect you to it.
It works because the date is in the Wikipedia article URL. Example:
Here is the relevant code:
today = new Date(); day = today.getDate(); month = today.getMonth(); if (month==0) x=("January"); else if (month==1) x=("February"); else if (month==2) x=("March"); else if (month==3) x=("April"); else if (month==4) x=("May"); else if (month==5) x=("June"); else if (month==6) x=("July"); else if (month==7) x=("August"); else if (month==8) x=("September"); else if (month==9) x=("October"); else if (month==10) x=("November"); else x=("December"); window.location = "http://www.wikipedia.org/wiki/" + x + "_" + day;
That’s all there is to it. If you have any questions, please leave a comment or contact me!