Manual:$wgRawHtmlMessages/zh
From Linux Web Expert
<translate> Language, regional and character encoding settings</translate>: $wgRawHtmlMessages | |
---|---|
可能包含原始HTML的訊息列表。 |
|
<translate> Introduced in version:</translate> | 1.32.0 (Gerrit change 449626; git #2ed7bdc) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (訊息 鍵的陣列) |
<translate> Default value:</translate> | see below |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
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
<translate> ≥</translate> 1.42
<translate> MediaWiki version:</translate> |
$wgRawHtmlMessages = [
'copyright',
'history_copyright',
'googlesearch',
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.41</tvar> is stable version</translate>">
1.41
<translate> MediaWiki version:</translate> |
$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',
];
|
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.40</tvar> is legacy version</translate>">
1.32 – 1.40
<translate> MediaWiki versions:</translate> |
$wgRawHtmlMessages = [
'copyright',
'history_copyright',
'googlesearch',
'feedback-terms',
'feedback-termsofuse',
];