打开/关闭搜索
搜索
打开/关闭菜单
10
29
3
584
大天使虫洞百科
导航
首页
加入EVE Online
资助甲虫
最近更改
随机页面
特殊页面
上传文件
外部链接
zKillboard
大天使对外频道(QQ)
大天使边境要塞(Discord)
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁Module:Effective protection level/doc”︁的源代码
来自大天使虫洞百科
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
Module:Effective protection level/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Module rating|protected}} {{used in system}} This module provides a way to retrieve the group required to perform a given action on a page. It currently tests the following criteria: * 在MediaWiki命名空間:sysop * 全站/使用者的JavaScript/CSS頁:interfaceadmin * 全站/使用者的JSON頁:sysop * 被保護頁面:sysop、templateeditor或autoconfirmed * 被連鎖保護頁面:sysop * 符合標題黑名單:sysop或autoconfirmed * 移動檔案:filemover * 移動頁面或上傳檔案:autoconfirmed * 其餘:* == Usage == '''Warning:''' This module will use up to 4 expensive parser function calls each time it is ran. It should only be used if the exact effective protection level is necessary. Otherwise, consider using title.protectionLevels instead. === From other modules === To load this module: <syntaxhighlight lang="lua"> local effectiveProtectionLevel = require('Module:Effective protection level')._main </syntaxhighlight> The function accepts two parameters. The first is a string containing the action to check, which must be one of "edit", "create", "move", "upload", or "autoreview". The second is optional, and can either be the name of the page to check, or a title returned from the mw.title functions. If the second parameter is omitted, the page being displayed is the one checked against. The return value is a string containing the name of the group required to perform the given action. === From wikitext === The parameters are the same as when it is called directly. {{tlinv|Effective protection level|''action''|''title''}} == See also == * [[Module:Effective protection expiry]] <includeonly>{{Sandbox other|| <!-- 本行下加入模組的分類 --> }}</includeonly>
返回
Module:Effective protection level/doc
。
查看“︁Module:Effective protection level/doc”︁的源代码
来自大天使虫洞百科