Changes
Jump to navigation
Jump to search
Module:Effective protection level
(view source)
Revision as of 09:11, 6 October 2014
2 bytes added
,
09:11, 6 October 2014
m
1 revision imported
Line 27:
Line 27:
if title.namespace == 8 then -- MediaWiki namespace
if title.namespace == 8 then -- MediaWiki namespace
return 'sysop'
return 'sysop'
−
elseif title.namespace == 2 and (
mw.ustring
.
find( pagename,
'
/.*%.js$
'
)
or
mw.ustring
.
find( pagename,
'
/.*%.
css
$
'
)
) then -- user
.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 'sysop'
return 'sysop'
end
end
Jferrell
Bureaucrats
,
Administrators
2,106
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
About WCOORC
Donation Guidelines
FAQ
Upcoming Events
Recent changes
Random page
Portals
Main page
Organizations
Genealogy
Local History
Resource Help
How-to Guides
How-to Videos
History Videos
Finding Aids
Source Citations
Tools
Special pages
Printable version