Provide message/warning/error box abstraction
authorjdlrobson <jdlrobson@gmail.com>
Thu, 28 Sep 2017 18:42:32 +0000 (13:42 -0500)
committerJdlrobson <jrobson@wikimedia.org>
Mon, 13 Nov 2017 23:19:45 +0000 (23:19 +0000)
commit4e7021a2318ec588e4d0b226c64d25e93ec80bd8
treec2cc169f72720af26b7fb1bcec4ecf7e18d0dc04
parent7853da416d5ecd95581dfec810e46d6974263a62
Provide message/warning/error box abstraction

This will help us consolidate the various uses into one single
method which will help us drive standardisation of these defacto
widgets.

Hopefully, by being a method of the Html class, which has a very
low barrier for use will drive down the inconsistent display of
warning/error boxes across MediaWiki's products

Various usages of warningbox and errorbox have been ported over.
I've retained some more complicated usages which make use of the
parser (wrapWikiMsg) and any where id and class are medled with
- we'll probably want to consider whether we want to encourage
those going forward as they encourage adjusting the styling.

Bug: T166915
Change-Id: I2757e1f4ff2599e93a7257fc644cab69063896d2
RELEASE-NOTES-1.31
includes/Html.php
includes/exception/MWException.php
includes/page/Article.php
includes/skins/SkinFallbackTemplate.php
includes/specials/SpecialEditTags.php
includes/specials/SpecialMovepage.php
includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialResetTokens.php
includes/specials/SpecialRevisiondelete.php
includes/specials/SpecialSearch.php