Wikipedia
Meta-joke
Meta-joke refers to several somewhat different, but related categories: self-referential jokes, jokes about jokes (also known as metahumor), and joke templates.