Jump to content

手册:$wgEnableProtectionIndicators

From mediawiki.org
This page is a translated version of the page Manual:$wgEnableProtectionIndicators and the translation is 100% complete.
杂项设置: $wgEnableProtectionIndicators
当页面受到保护时,是否显示指示器。
引进版本:1.43.0​(Gerrit change 1033697; git #bfb2d1d9
移除版本:仍在使用
允许的值:(布尔值)
默认值:true (1.45+)
false (1.43—1.44)

若启用此设置,类似于锁图标的锁图标会作为受保护页面状态指示器 显示。

该指示器的HTMLid取决于页面的保护级别:protection-<protectionLevel>。 如果受连锁保护,则ID变为protection-<protectionLevel>-cascade

锁图标具有title属性,如果具有指定的保护持续时间,则文本来自系统消息ID“protection-indicator-title” (讨论),如果是无限期保护,则文本来自系统消息ID“protection-indicator-title-infinity” (讨论)。

锁图标默认链接到mediawiki.org上的Help:受保护页面 页面,但可以通过编辑与指示器ID相同的系统消息 并加上-helppage后缀来自定义URL。 此消息的内容必须是完整的URL,不能是页面名称,但可以通过使用解析器函数和模板构造URL。

参见帮助:保护状态指示器 以获取与自定义维基上此功能的外观相关的更多信息。