Module:Effective protection level: Difference between revisions
Content added Content deleted
Psephomancy (talk | contribs) m (1 revision imported: copy from w:Template:Graph:Chart) |
(Handle interfaceadmin) |
||
Line 27: | Line 27: | ||
end |
end |
||
if title.namespace == 8 then -- MediaWiki namespace |
if title.namespace == 8 then -- MediaWiki namespace |
||
⚫ | |||
⚫ | |||
return 'interfaceadmin' |
|||
⚫ | |||
else -- any non-JS/CSS MediaWiki page |
|||
⚫ | |||
⚫ | |||
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 |
|||
⚫ | |||
end |
|||
end |
end |
||
local level = title.protectionLevels[action] and title.protectionLevels[action][1] |
local level = title.protectionLevels[action] and title.protectionLevels[action][1] |