Add Special:ChangeContentModel
authorKunal Mehta <legoktm@gmail.com>
Sun, 29 Mar 2015 03:36:01 +0000 (20:36 -0700)
committerKunal Mehta <legoktm@gmail.com>
Tue, 30 Jun 2015 20:14:50 +0000 (13:14 -0700)
commitfa31bf1675af7255431aeffd9757066e0ce572e2
treec7229249a8636c949904e92fc27368be30d9df97
parent8a164ff9f9f5b4691e40f1219358ca45c8b61c3d
Add Special:ChangeContentModel

Special:ChangeContentModel allows for users with the 'editcontentmodel'
right to change the content model of a page.

Visiting Special:ChangeContentModel will contain an input field for a
page title. The user will then be sent to
Special:ChangeContentModel?pagetitle=<input> where the page title is
read only, with a content model selector and optional reason field.

The special page only allows converting between content models that
extend TextContent for simplicity. Advanced conversions should be done
via the API.

All content model changes via the special page or API generate a null
revision in the page history and a log entry at
Special:Log/contentmodel. The log entry has a revert link for
convenience (like the move log).

Bug: T72592
Co-Authored-By: Lewis Cawte <lewis@lewiscawte.me>
Change-Id: I296a67c09fcbc880c8c3a648eb5086580725ea46
autoload.php
includes/DefaultSettings.php
includes/EditPage.php
includes/content/ContentHandler.php
includes/logging/ContentModelLogFormatter.php [new file with mode: 0644]
includes/specialpage/SpecialPageFactory.php
includes/specials/SpecialChangeContentModel.php [new file with mode: 0644]
languages/i18n/en.json
languages/i18n/qqq.json