Page MenuHomePhabricator

Special:ChangeContentModel should tell the user the new content model in its system message
Closed, ResolvedPublicFeature

Description

Feature summary:

The system message at mw-changecontentmodel-success-text is displayed after a user has changed the content model of a page.

It says (by default):

The content type of [[:$1]] has been changed.

What should happen?

It should be changed to:

> The content model of [[:$1]] has been changed from $2 to $3.

  1. It's content model, not content type
  2. where $2 is the name of the old content model.
  3. where $3 is the name of the new content model that's applied to the page.

So $2 and $3 need to be specified and passed in code.

Bonus:

There is also a grammar error in mw-changecontentmodel-success-title which says:

The content model was changed

but would be better as:

Content model changed

to simplify things.

Details

Event Timeline

Change #1270615 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/core@master] ChangeContentModel: Handle creating a new page in UI

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

Change #1270615 merged by jenkins-bot:

[mediawiki/core@master] ChangeContentModel: Handle creating a new page in UI

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