NOTE: Please create subtasks to manage works by your team. Your assistance is greatly appreciated.
These classes conflict with on wiki styles so will be replaced with new classes.
This impacts any code which is declaring the old class.
We need to update various instances of https://codesearch.wmcloud.org/deployed/?q=(error%7Csuccess%7Cwarning%7Cmessage)box&i=nope&files=&excludeFiles=&repos=
To avoid breakage
* Skins should ensure they are enabling the interface-message-box feature inside the module that is used in ResourceLoaderSkinModule or update their CSS selectors to include the new classes https://gerrit.wikimedia.org/g/mediawiki/core/+/7c2187f48c7ebf5c2b7dd94604dc911d26445998/includes/Html.php#762
* Extensions overriding the styles should update their own styles and should consider using their own dedicated class selector to do this.
* Extensions must call Html::noticeBox, Html::warningBox, Html::errorBox rather than directly specify the class
Before:
```lang=php
Html::rawElement( 'div',
[ 'class' => 'warningbox' ],
$ctx->msg( 'confirmedit-preview-description' )->parse()
)
```
After:
```lang=php
Html::warningBox(
$ctx->msg( 'confirmedit-preview-description' )->parse()
)
```
* In JavaScript, extensions should use the new mw.util.messageBox function (see https://gerrit.wikimedia.org/r/c/mediawiki/core/+/757765)
* Update any Output::wrapWikiMsg methods
Before:
```lang=php
$out->wrapWikiMsg( "<div class='errorbox'>\n$1\n</div>\n",
[ 'missing-revision', $this->oldid ]
);
```
After:
```lang=php
use Html;
$out->addHTML(
Html::errorBox(
$out->msg( 'missing-revision', 50 )->parse()
)
);
```
Before:
```lang=php
$this->getOutput()->wrapWikiTextAsInterface(
'errorbox',
$wikitext
);
```
After:
```lang=php
$out = $this->getOutput();
$out->addHTML( Html::errorBox( $out->parseAsContent( $wikitext ) ) );
```