Translations:Extension:Scribunto/Lua reference manual/2593/en

(where $x is any non-alphanumeric character) represents the character $x. This is the standard way to escape the magic characters. Any punctuation character (even the non magic) can be preceded by a $percent when used to represent itself in a pattern.