Robin mentions the show by name.
Robin says it looks like they're casting for Coccon 3 because of all the old people.
The film The Princess Bride (1987) and Mandy Patinkin who portrayed one of the main characters (Inigo Montoya) is mentioned frequently throughout the whole of this episode. Marshall and Ted citing famous lines of Inigo Montoya during their sword fight, as well tries Lily when she is fighting with Robin. Robin also mentions Mandy Patinkin several times as being a magical phrase attracting old people. She and Barney use it to gather their elderly relatives.
Lily mentions the movie by name.
Lily performs her version of one of the swordfighting scenes from the movie.