Surround edit notices with appropriate classes
authorDouglas Gardner <douglas@chippy.ch>
Sat, 16 Aug 2014 11:29:04 +0000 (12:29 +0100)
committerDouglas Gardner <douglas@chippy.ch>
Sat, 16 Aug 2014 12:46:28 +0000 (13:46 +0100)
commit4bd9991335495b7bc5d37a705e070d4df05cdbc3
tree046a0af466e9b6b22ad2b06cdc4a1a727f66f6c8
parent6a826fd6bf2724707c23d1b6f18639bdfc5463e9
Surround edit notices with appropriate classes

This commit adds a <div> around edit notices with relevant classes to aid in the
creation of user scripts, following an earlier change (bug 30959) for
edit intros.

It adds an .mw-editnotice class to each edit notice, and because classes are fairly
cheap, a second mirroring the edit notice's message key, and a third depending
on the edit notice type:
.mw-editnotice-namespace for a namespace-wide edit notice
.mw-editnotice-base for a edit notice for the subpage's base page
.mw-editnotice-page for an edit notice set explicitly for the page

Classes are sanitized where required.

Bug: 68749
Change-Id: Idf44f2a344d64893f799286914bda3f8d4aff6bf
includes/Title.php