模块:Effective protection level:修订间差异
imported>Xiplus 小 已保护“模块:Effective protection level”:高风险模板 (TW)([编辑=仅允许自动确认用户](无限期)) |
imported>Xiplus +JSON頁保護 |
||
| 第28行: | 第28行: | ||
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 | 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 | ||