Manual:$wgRawHtmlMessages

This page is a translated version of the page Manual:$wgRawHtmlMessages and the translation is 33% complete.
言語、地域、文字エンコードの設定: $wgRawHtmlMessages
List of messages which might contain raw HTML.
導入されたバージョン:1.32.0 (Gerrit change 449626; git #2ed7bdc)
除去されたバージョン:使用中
許容される値:(メッセージ キーの配列)
既定値:see below

詳細

This variable is primarily meant for extension so they can register sensitive messages. Extension authors should add all messages here which will be displayed without escaping (e.g. messages which use $msg->text() or $msg->plain(), and then send the text to the output without further escaping). The list is used for access control, changing messages listed here will require editsitecss and editsitejs rights in addition to editinterface already required for editing MediaWiki namespace.

To add values in an extension, add a section like this to extension.json:

"RawHtmlMessages": [
    "foo",
    "bar",
    "baz"
],

Message names must be given with underscores rather than spaces and with lowercase first letter.

Default value

MediaWiki バージョン:
1.42
$wgRawHtmlMessages = [
	'copyright',
	'history_copyright',
	'googlesearch',
];

MediaWiki バージョン:
1.41
$wgRawHtmlMessages = [
	'copyright',
	'history_copyright',
	'googlesearch',
	'youhavenewmessagesmanyusers',
	'youhavenewmessages',
];
Backported to

1.39.5

$wgRawHtmlMessages = [
	'copyright',
	'history_copyright',
	'googlesearch',
	'youhavenewmessagesmanyusers',
	'youhavenewmessages',
];

1.35.12

$wgRawHtmlMessages = [
	'copyright',
	'history_copyright',
	'googlesearch',
	'feedback-terms',
	'feedback-termsofuse',
	'youhavenewmessagesmanyusers',
	'youhavenewmessages',
];

MediaWiki バージョン:
1.32 – 1.40
$wgRawHtmlMessages = [
	'copyright',
	'history_copyright',
	'googlesearch',
	'feedback-terms',
	'feedback-termsofuse',
];

関連項目