模块:Effective protection level:修订间差异
imported>蟲蟲飛 小 已更改“模块:Effective protection level”的保护等级:高风险模板([编辑=仅管理员](无限期)[移动=仅管理员](无限期)) |
imported>Xiplus +templateeditor |
||
| 第34行: | 第34行: | ||
elseif title.cascadingProtection.restrictions['edit'] and title.cascadingProtection.restrictions['edit'][1] then -- used by a cascading-protected page | elseif title.cascadingProtection.restrictions['edit'] and title.cascadingProtection.restrictions['edit'][1] then -- used by a cascading-protected page | ||
return 'sysop' | return 'sysop' | ||
elseif level == 'templateeditor' then | |||
return 'templateeditor' | |||
elseif action == 'move' then | elseif action == 'move' then | ||
local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. | local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. | ||