Changes
Jump to navigation
Jump to search
Line 28:
Line 28:
− +
Module:Effective protection level (view source)
Revision as of 17:22, 6 April 2018
, 17:22, 6 April 2018add user JSON subpage detection - see Tech News: 2018-14
if title.namespace == 8 then -- MediaWiki namespace
if title.namespace == 8 then -- MediaWiki namespace
return 'sysop'
return 'sysop'
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) then -- user JS or CSS page
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' or title.contentModel == 'json' ) then -- user JS, CSS or JSON page
return 'sysop'
return 'sysop'
end
end