Changes
Jump to navigation
Jump to search
← Older edit
Module:Effective protection level
(view source)
Revision as of 14:18, 31 December 2018
270 bytes added
,
14:18, 31 December 2018
m
1 revision imported: Template Hindu template infobox
Line 27:
Line 27:
end
end
if title.namespace == 8 then -- MediaWiki namespace
if title.namespace == 8 then -- MediaWiki namespace
−
return 'sysop'
+
if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page
−
elseif title.namespace == 2 and title.isSubpage
and (
title.contentModel == 'javascript' or title.contentModel == 'css'
)
then -- user JS or CSS page
+
return 'interfaceadmin'
−
return 'sysop'
+
else -- any non-JS/CSS MediaWiki page
+
return 'sysop'
+
end
+
elseif title.namespace == 2 and title.isSubpage
then
+
if
title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page
+
return 'interfaceadmin'
+
elseif title.contentModel == 'json' then -- user JSON page
+
return 'sysop'
+
end
end
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
WikiSysop
Bureaucrats
, private-view, public-view,
Administrators
97,692
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Create New Page
Temples of India
Subscribe Dharmawiki
Recent changes
Random page
Author Help
Donate to Cause
Donate For Dharma
Tools
Special pages
Printable version