<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
	<id>http://wiki.nightscout.cz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AEffective_protection_level</id>
	<title>Modul:Effective protection level - Historie editací</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nightscout.cz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AEffective_protection_level"/>
	<link rel="alternate" type="text/html" href="http://wiki.nightscout.cz/index.php?title=Modul:Effective_protection_level&amp;action=history"/>
	<updated>2026-05-01T07:11:26Z</updated>
	<subtitle>Historie editací této stránky</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://wiki.nightscout.cz/index.php?title=Modul:Effective_protection_level&amp;diff=301&amp;oldid=prev</id>
		<title>Maska: naimportována 1 revize</title>
		<link rel="alternate" type="text/html" href="http://wiki.nightscout.cz/index.php?title=Modul:Effective_protection_level&amp;diff=301&amp;oldid=prev"/>
		<updated>2021-03-23T11:23:38Z</updated>

		<summary type="html">&lt;p&gt;naimportována 1 revize&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;cs&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Starší verze&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Verze z 23. 3. 2021, 13:23&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;cs&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Žádný rozdíl)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Maska</name></author>
	</entry>
	<entry>
		<id>http://wiki.nightscout.cz/index.php?title=Modul:Effective_protection_level&amp;diff=300&amp;oldid=prev</id>
		<title>Template&gt;Tegel: Reverted edits by 2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9 (talk) to last version by Pppery</title>
		<link rel="alternate" type="text/html" href="http://wiki.nightscout.cz/index.php?title=Modul:Effective_protection_level&amp;diff=300&amp;oldid=prev"/>
		<updated>2020-04-25T14:26:46Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/index.php/Speci%C3%A1ln%C3%AD:P%C5%99%C3%ADsp%C4%9Bvky/2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9&quot; title=&quot;Speciální:Příspěvky/2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9&quot;&gt;2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9&lt;/a&gt; (&lt;a href=&quot;/index.php?title=Diskuse_s_u%C5%BEivatelem:2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Diskuse s uživatelem:2806:2F0:51E1:9FE9:D4EC:D0C2:C56:2DB9 (stránka neexistuje)&quot;&gt;talk&lt;/a&gt;) to last version by Pppery&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Returns the permission required to perform a given action on a given title.&lt;br /&gt;
-- If no title is specified, the title of the page being displayed is used.&lt;br /&gt;
function p._main(action, pagename)&lt;br /&gt;
	local title&lt;br /&gt;
	if type(pagename) == 'table' and pagename.prefixedText then&lt;br /&gt;
		title = pagename&lt;br /&gt;
	elseif pagename then&lt;br /&gt;
		title = mw.title.new(pagename)&lt;br /&gt;
	else&lt;br /&gt;
		title = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	pagename = title.prefixedText&lt;br /&gt;
	if action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then&lt;br /&gt;
		error( 'First parameter must be one of edit, move, create, upload', 2 )&lt;br /&gt;
	end&lt;br /&gt;
	if title.namespace == 8 then -- MediaWiki namespace&lt;br /&gt;
		if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page&lt;br /&gt;
			return 'interfaceadmin'&lt;br /&gt;
		else -- any non-JS/CSS MediaWiki page&lt;br /&gt;
			return 'sysop'&lt;br /&gt;
		end&lt;br /&gt;
	elseif title.namespace == 2 and title.isSubpage then&lt;br /&gt;
		if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page&lt;br /&gt;
			return 'interfaceadmin'&lt;br /&gt;
		elseif title.contentModel == 'json' then -- user JSON page&lt;br /&gt;
			return 'sysop'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local level = title.protectionLevels[action] and title.protectionLevels[action][1]&lt;br /&gt;
	if level == 'sysop' or level == 'editprotected' then&lt;br /&gt;
		return 'sysop'&lt;br /&gt;
	elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page&lt;br /&gt;
		return 'sysop'&lt;br /&gt;
	elseif action == 'move' then&lt;br /&gt;
		local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.&lt;br /&gt;
		if blacklistentry and not blacklistentry.params.autoconfirmed then&lt;br /&gt;
			return 'sysop'&lt;br /&gt;
		elseif title.namespace == 6 then&lt;br /&gt;
			return 'sysop'&lt;br /&gt;
		else&lt;br /&gt;
			return 'autoconfirmed'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)&lt;br /&gt;
	if blacklistentry then&lt;br /&gt;
		if not blacklistentry.params.autoconfirmed then&lt;br /&gt;
			return 'sysop'&lt;br /&gt;
		else&lt;br /&gt;
			return 'autoconfirmed'&lt;br /&gt;
		end&lt;br /&gt;
	elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason&lt;br /&gt;
		return 'autoconfirmed'&lt;br /&gt;
	elseif level then&lt;br /&gt;
		return level&lt;br /&gt;
	elseif action == 'upload' then&lt;br /&gt;
		return 'uploader'&lt;br /&gt;
	else&lt;br /&gt;
		return '*'&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
setmetatable(p, { __index = function(t, k)&lt;br /&gt;
	return function(frame)&lt;br /&gt;
		return t._main(k, frame.args[1])&lt;br /&gt;
	end&lt;br /&gt;
end })&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Template&gt;Tegel</name></author>
	</entry>
</feed>