手冊:$wgRawHtmlMessages

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgRawHtmlMessages and the translation is 70% complete.
Other languages:
English • ‎magyar • ‎polski • ‎中文 • ‎日本語
本地化: $wgRawHtmlMessages
可能包含原始HTML的訊息列表。
引进版本:1.32.0 (Gerrit change 449626; git #2ed7bdc)
移除版本:仍在使用
允许的值:(訊息 鍵的陣列)
默认值:未指定

细节

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"
],

訊息名稱必須使用底線而不是空格,並且首字母必須小寫。

参见