Module:Escape input/doc
Appearance
| This is a documentation subpage for Module:Escape input. It may contain usage information, categories and other content that is not part of the original module page. |
| Description | This module allows special Lua character sequences to be escaped and inserted as parameters in arguments. |
|---|---|
| Status | Unknown |
| Updated | May 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:
stringString with escape characters (string) - Returns: Escaped string
escape_input.main( frame )(function)- Main entrypoint
- Parameters:
- Returns: Escaped wikitext
- Usage:
{{#invoke:escape input|main|1=String to escape}}
Documentation above is auto generated