Etymology
Today it means: Droll behaviour characteristic of a wag. Full definition →
From wag + -ery.
Etymology from Wiktionary, CC BY-SA 4.0.