مستخدم مجهول
الفرق بين المراجعتين لصفحة: «وحدة:Effective protection level»
ط
Changed protection level for "Module:Effective protection level": Used in interface MediaWiki:Cascadeprotected ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))
ar>Ibrahim.ID ط (مراجعة واحدة: استيراد وحدة) |
ط (Changed protection level for "Module:Effective protection level": Used in interface MediaWiki:Cascadeprotected ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
||
سطر ٢٧: | سطر ٢٧: | ||
end | end | ||
if title.namespace == 8 then -- MediaWiki namespace | if title.namespace == 8 then -- MediaWiki namespace | ||
return 'sysop' | if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page | ||
elseif title.namespace == 2 and title.isSubpage | return 'interfaceadmin' | ||
return 'sysop' | else -- any non-JS/CSS MediaWiki page | ||
return 'sysop' | |||
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 | |||
return 'sysop' | |||
end | |||
end | end | ||
local level = title.protectionLevels[action] and title.protectionLevels[action][1] | local level = title.protectionLevels[action] and title.protectionLevels[action][1] |