手冊:$wgRawHtmlMessages
Appearance
语言、区域和字符编码设置: $wgRawHtmlMessages | |
---|---|
可能包含原始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.
要在擴充功能中添加數值,請將類似這樣的段落加入到extension.json
:
"RawHtmlMessages": [
"foo",
"bar",
"baz"
],
訊息名稱必須使用底線而不是空格,並且首字母必須小寫。
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',
];