View source for Module:Effective protection level
Appearance
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
-- Returns the permission required to perform a given action on a given title.
-- If no title is specified, the title of the page being displayed is used.
function p._main(action, pagename)
local title
if type(pagename) == 'table' and pagename.prefixedText then
title = pagename
elseif pagename then
title = mw.title.new(pagename)
else
title = mw.title.getCurrentTitle()
end
pagename = title.prefixedText
if action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
error( 'First parameter must be one of edit, move, create, upload', 2 )
end
if title.namespace == 8 then -- MediaWiki namespace
if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page
return 'interfaceadmin'
else -- any non-JS/CSS MediaWiki page
return 'sysop'
000
1:0
Templates used on this page:
- Template:Documentation (view source)
- Template:Documentation/en (view source)
- Template:IsDocSubpage (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Module rating/en (view source)
- Template:Ombox (view source)
- Module:Arguments (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/i18n (view source)
- Module:Documentation/styles.css (view source)
- Module:Effective protection level (view source)
- Module:Effective protection level/doc (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:TNT (view source)
- Module:Yesno (view source)
Return to Module:Effective protection level.