Jump to content

Manual:$wgEnableProtectionIndicators

From mediawiki.org
This page is a translated version of the page Manual:$wgEnableProtectionIndicators and the translation is 33% complete.
その他の設定: $wgEnableProtectionIndicators
ページが保護されている場合にインジケーターを表示するかどうか。
導入されたバージョン:1.43.0 (Gerrit change 1033697; git #bfb2d1d9)
除去されたバージョン:使用中
許容される値:(真偽値)
既定値:false

When this setting is enabled, a lock icon is displayed as a page status indicator on protected pages .

The indicator has an HTML id depending on the protection level of the page: protection-<protectionLevel>. If it's cascade-protected, then the id becomes protection-<protectionLevel>-cascade.

The lock icon has a title attribute with the text coming from the ID「protection-indicator-title」のメッセージ (トーク) if it has a specified protection duration, or ID「protection-indicator-title-infinity」のメッセージ (トーク) if there's no expiration for the protection.

The lock icon links to the Help:Protection page on mediawiki.org, but the URL can be customized by editing a system message with the same id as the indicator, plus the -helppage suffix. The contents of this message must be a full URL, it can't be a page name, but it can use parser functions and templates to construct the URL.