<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.czzzz.work/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AEffective_protection_level%2Fdoc</id>
	<title>模块:Effective protection level/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.czzzz.work/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3AEffective_protection_level%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.czzzz.work/index.php?title=%E6%A8%A1%E5%9D%97:Effective_protection_level/doc&amp;action=history"/>
	<updated>2026-05-04T22:37:15Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.czzzz.work/index.php?title=%E6%A8%A1%E5%9D%97:Effective_protection_level/doc&amp;diff=2089&amp;oldid=prev</id>
		<title>Santorsia：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://wiki.czzzz.work/index.php?title=%E6%A8%A1%E5%9D%97:Effective_protection_level/doc&amp;diff=2089&amp;oldid=prev"/>
		<updated>2022-09-18T14:20:19Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年9月18日 (日) 22:20的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Santorsia</name></author>
	</entry>
	<entry>
		<id>https://wiki.czzzz.work/index.php?title=%E6%A8%A1%E5%9D%97:Effective_protection_level/doc&amp;diff=2088&amp;oldid=prev</id>
		<title>wikipedia&gt;DB1729：​Reverted 1 edit by 120.18.100.231 (talk) to last revision by PohranicniStraze</title>
		<link rel="alternate" type="text/html" href="https://wiki.czzzz.work/index.php?title=%E6%A8%A1%E5%9D%97:Effective_protection_level/doc&amp;diff=2088&amp;oldid=prev"/>
		<updated>2022-03-23T23:36:26Z</updated>

		<summary type="html">&lt;p&gt;Reverted 1 edit by &lt;a href=&quot;/index.php?title=%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/120.18.100.231&quot; title=&quot;特殊:用户贡献/120.18.100.231&quot;&gt;120.18.100.231&lt;/a&gt; (&lt;a href=&quot;/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:120.18.100.231&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;用户讨论:120.18.100.231（页面不存在）&quot;&gt;talk&lt;/a&gt;) to last revision by PohranicniStraze&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|protected}}&lt;br /&gt;
{{used in system}}&lt;br /&gt;
&lt;br /&gt;
This module provides a way to retrieve the group required to perform a given action on a page. It currently tests the following criteria:&lt;br /&gt;
* The page being pending-changes protected: autoconfirmed&lt;br /&gt;
* The page being a JavaScript or CSS subpage in userspace, or in the MediaWiki namespace: interfaceadmin&lt;br /&gt;
* The page being in the MediaWiki namespace: sysop&lt;br /&gt;
* The page being a JSON subpage in userspace: sysop&lt;br /&gt;
* The page being protected: sysop, templateeditor, extendedconfirmed, or autoconfirmed&lt;br /&gt;
* The page being used in a cascading-protected page: sysop&lt;br /&gt;
* The page&amp;#039;s title matching the titleblacklist: templateeditor or autoconfirmed&lt;br /&gt;
* A file being moved: filemover&lt;br /&gt;
* A page being moved or a file being uploaded: autoconfirmed&lt;br /&gt;
* A non-Draft non-talk page being created: user&lt;br /&gt;
* Anything else: *&lt;br /&gt;
&lt;br /&gt;
Note that if a template-protected file is moved, both filemover and templateeditor are required, but this will return only templateeditor. This is not likely to be changed any time soon, since template protection currently shouldn&amp;#039;t be used on files.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warning:&amp;#039;&amp;#039;&amp;#039; This module will use up to 4 expensive parser function calls each time it is ran. It should only be used if the exact effective protection level is necessary. Otherwise, consider using title.protectionLevels instead.&lt;br /&gt;
=== From other modules ===&lt;br /&gt;
To load this module:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local effectiveProtectionLevel = require(&amp;#039;Module:Effective protection level&amp;#039;)._main&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function accepts two parameters. The first is a string containing the action to check, which must be one of &amp;quot;edit&amp;quot;, &amp;quot;create&amp;quot;, &amp;quot;move&amp;quot;, &amp;quot;upload&amp;quot;, &amp;quot;undelete&amp;quot;, or &amp;quot;autoreview&amp;quot;. The second is optional, and can either be the name of the page to check, or a title returned from the mw.title functions. If the second parameter is omitted, the page being displayed is the one checked against. The return value is a string containing the name of the group required to perform the given action.&lt;br /&gt;
&lt;br /&gt;
=== From wikitext ===&lt;br /&gt;
The parameters are the same as when it is called directly.&lt;br /&gt;
 {{tlinv|Effective protection level|&amp;#039;&amp;#039;action&amp;#039;&amp;#039;|&amp;#039;&amp;#039;title&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:Effective protection expiry]]&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;DB1729</name></author>
	</entry>
</feed>