Module:Effective protection level: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add user JSON subpage detection - see Tech News: 2018-14
m (Protected "Module:Effective protection level": High-risk Lua module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(add user JSON subpage detection - see Tech News: 2018-14)
Line 28:
if title.namespace == 8 then -- MediaWiki namespace
return 'sysop'
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' or title.contentModel == 'json' ) then -- user JS, CSS or CSSJSON page
return 'sysop'
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu