Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Escape input/doc

From Wikipedia, the free encyclopedia
Escape input
DescriptionThis module allows special Lua character sequences to be escaped and inserted as parameters in arguments.
Status
Unknown
UpdatedMay 26, 2026 (2 months ago)

This module allows special Lua character sequences to be escaped and inserted as parameters in arguments. In addition to those listed on mw:Extension:Scribunto/Lua_reference_manual#string, the following is how replacements are conducted:

Escape sequence Character
\{ {
\} }
\[ [
\] ]
\p |
\e =
\_

Documentation

Package items

escape_input.escape( string ) (function)
Escapes a specified format string
Parameter: string String with escape characters (string)
Returns: Escaped string
escape_input.main( frame ) (function)
Main entrypoint
Parameters:
frame Calling frame (table)
frame.args Frame arguments (table)
frame.args[1] Escaped string sequence (string; optional)
Returns: Escaped wikitext
Usage: {{#invoke:escape input|main|1=String to escape}}

Documentation above is auto generated