We don't have a page about Hamlet itself. These are the places it comes up on the site, and what each one says.
On episode pages
Came before it
William Shakespeare · play · the "To be, or not to be" speech supplies the title for both the story and the episode
Came before it
Shakespeare · play · the line Serling quotes in the closing narration
Came before it
William Shakespeare · plays · the writer Moomer borrows and the producers carve up
Came before it
William Shakespeare · play · c. 1600 · the title, the play-within-the-play, and a son seeking revenge
Recommended (read)
Picard and Q trade Shakespeare in the ready room, and Picard makes a point of knowing his Hamlet.
Shares its DNA
William Shakespeare · play · c. 1600 · a son, a dead father and a court that would rather not know
Recommended (read)
A son, his father's name and a royal court full of people who know more than they say. If the Great Hall scenes were your favorite, it's the same kind of drama with more ghosts.