<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ALua_escape%2Fdoc</id>
	<title>Template:Lua escape/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ALua_escape%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Lua_escape/doc&amp;action=history"/>
	<updated>2026-11-01T17:57:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Lua_escape/doc&amp;diff=114576&amp;oldid=prev</id>
		<title>Wikipedia&gt;Tactica: rm duplicated category.</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Lua_escape/doc&amp;diff=114576&amp;oldid=prev"/>
		<updated>2026-03-21T00:01:42Z</updated>

		<summary type="html">&lt;p&gt;rm duplicated category.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
Escapes a string to make it suitable as a [[mw:LUAREF#Patterns|Lua Scribunto regular expression]]. &lt;br /&gt;
&lt;br /&gt;
The full set of metacharacters needing escaping in patterns is: {{kbd|().%+-*?[^$}}; for now, only hyphen is escaped.{{efn|Which means this template fails for {{t|Welcome v2.0/doc}}, currently the only template with {{t|subst only}} that has a dot in the title.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
{{tlc|Lua escape|&amp;#039;&amp;#039;string&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
There is one required positional parameter:&lt;br /&gt;
: {{para|1}} – the string to be escaped&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* {{tlg|Lua escape|uw-vandalism4|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Lua escape|Template:Please see|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Lua escape|Template:Uw-c&amp;amp;pmove|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Lua escape|Template:A&amp;amp;E original programming|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Lua escape|Template:D&amp;amp;D-stub|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Lua escape|Template:Welcome v2.0|code=y|_show_result=y}} &amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;small&amp;gt;&amp;#039;&amp;#039;(fails to escape the dot)&amp;#039;&amp;#039;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Template:Template usage#Metacharacters]]&lt;br /&gt;
* [[mw:Extension:Scribunto/Lua reference manual#Patterns]]&lt;br /&gt;
* [[mw:Extension:ReplaceSet]] – what we really need, but don&amp;#039;t have&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{notelist}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Tactica</name></author>
	</entry>
</feed>