Joke templates

I was reading this page containing a few meta-jokes, then read the Wikipedia page for meta-jokes. I liked the joke templates, in particular. Here’s an example:

Three people of different nationalities walk into a bar. Two of them say something smart, and the third one makes a mockery of his fellow countrymen by acting stupid.

I suppose joke templates could be very useful for comedy writers or for people doing research on humor. (See, for example, HUMOR: International Journal of Humor Research and The Israeli Journal of Humor Research: An International Journal. There’s even a field of study called computational humor.)