Page MenuHomePhabricator

Support legacy message box markup inside user generated content and deprecate ResourceLoader SkinModule message-box style pack
Closed, ResolvedPublic

Description

Background

Historically creating a div with the class mw-message-box creates a message box. Over time this has become redundant and has been replaced by Codex and as a result this CSS is only used in pages where the content contains this markup. In future we'd like to provide parser functions that allow rendering this HTML and after discussion with DST, we'd like to avoid editors being required to make markup changes until this is ready.

User story

As an editor I don't want to have to update 200 pages which reference the old markup.

Requirements

  • If a page doesn't contain mw-message-box markup, no CSS for mw-message-box is loaded on page for any skin.
  • If a page does contain mw-message-box markup, CSS for mw-message-box is loaded on page for any skin.
  • The styling of mw-message-box does not need to be consistent with Codex.

This task was created by Version 1.2.0 of the Web team task template using phabulous

Details

Event Timeline

Change #1073881 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Support legacy message boxes in user generated content

https://gerrit.wikimedia.org/r/1073881

Change #1073881 merged by jenkins-bot:

[mediawiki/core@master] Support legacy message boxes in user generated content

https://gerrit.wikimedia.org/r/1073881

Jdlrobson raised the priority of this task from Low to Medium.
Jdlrobson updated the task description. (Show Details)

I've updated relevant documentation on https://www.mediawiki.org/wiki/Manual:ResourceLoaderSkinModule, updated the user notice and created a follow up T375149