Manual:$wgRawHtmlMessages/de-formal

From Linux Web Expert

Revision as of 18:05, 20 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Language, regional and character encoding settings</translate>: $wgRawHtmlMessages
List of messages which might contain raw 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>(array of message keys)
<translate> Default value:</translate>see below

Details

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

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<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',
];

See also