Podręcznik:$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 30% complete.
Other languages:
English • ‎Nederlands • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎中文 • ‎日本語
Language, regional and character encoding settings: $wgRawHtmlMessages
List of messages which might contain raw HTML.
Wprowadzono w wersji:1.32.0 (Gerrit change 449626; git #2ed7bdc)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array of message keys)
Domyślna wartość:
[
	'copyright',
	'history_copyright',
	'googlesearch',
	'feedback-terms',
	'feedback-termsofuse',
];

Szczegóły

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.

Zobacz też