<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AProtect</id>
	<title>Module:Protect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AProtect"/>
	<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Protect&amp;action=history"/>
	<updated>2026-04-08T04:13:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Protect&amp;diff=1349&amp;oldid=prev</id>
		<title>Orangestar: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Protect&amp;diff=1349&amp;oldid=prev"/>
		<updated>2024-06-09T22:14:34Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:14, 9 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-1348:rev-1349 --&gt;
&lt;/table&gt;</summary>
		<author><name>Orangestar</name></author>
	</entry>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Protect&amp;diff=1348&amp;oldid=prev</id>
		<title>en&gt;Xaosflux: Changed protection level for &quot;Module:Protect&quot;: used in interface MediaWiki:Protectedinterface ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Protect&amp;diff=1348&amp;oldid=prev"/>
		<updated>2019-03-13T12:54:02Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/w/Module:Protect&quot; title=&quot;Module:Protect&quot;&gt;Module:Protect&lt;/a&gt;&amp;quot;: used in interface &lt;a href=&quot;/w/MediaWiki:Protectedinterface&quot; title=&quot;MediaWiki:Protectedinterface&quot;&gt;MediaWiki:Protectedinterface&lt;/a&gt; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function processResult(options, success, ...)&lt;br /&gt;
	if not success then&lt;br /&gt;
		local message = tostring(... or &amp;#039;(no message)&amp;#039;)&lt;br /&gt;
		if options.removeLocation then&lt;br /&gt;
			message = string.gsub(message, &amp;#039;^Module:[^:]+:%d+: &amp;#039;, &amp;#039;&amp;#039;, 1)&lt;br /&gt;
		end&lt;br /&gt;
		return string.format(options.errFormat, message)&lt;br /&gt;
	end&lt;br /&gt;
	return ...&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function protect(func, errFormat, options)&lt;br /&gt;
	if type(errFormat) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		options = options or errFormat&lt;br /&gt;
		errFormat = nil&lt;br /&gt;
	end&lt;br /&gt;
	options = mw.clone(options) or {}&lt;br /&gt;
	options.errFormat = errFormat or options.errFormat or &amp;#039;Error: %s&amp;#039;&lt;br /&gt;
	if not options.raw then&lt;br /&gt;
		options.errFormat = &amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;&amp;#039; .. options.errFormat .. &amp;#039;&amp;lt;/strong&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	options.removeLocation = options.removeLocation == nil or options.removeLocation&lt;br /&gt;
	&lt;br /&gt;
	return function (...)&lt;br /&gt;
		return processResult(options, pcall(func, ...))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return protect&lt;/div&gt;</summary>
		<author><name>en&gt;Xaosflux</name></author>
	</entry>
</feed>