Page MenuHomePhabricator

Present editnotices when moving a page
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
When moving a page, display the same edit notices that are displayed when editing the page

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  1. Go to a page
  2. Try to move the page (e.g. https://test.wikipedia.org/wiki/Special:MovePage/PageWithAnEditNotice2022)
  3. Notice that lack of seeing the edit notices that would be seen when editing the page (https://test.wikipedia.org/w/index.php?title=PageWithAnEditNotice2022&action=edit)

The problem is that notices about the page title are not able to be communicated to the person wanting to change the title. Another problem is that someone wanting to change the page title may disassociate the page from its existing edit notices, as they may not be aware that said notices may also need to be moved.

Benefits (why should this be implemented?):
Edit notices can be used to inform editors of many things, one of these could be about what the title of the page should be. Currently when someone wants to change the page title (via the Move operation) - they are not informed of notices that are otherwise relevant to the page. Displaying such may help prevent unnecessary moves, or could be a signal to someone wanting to move a page that there is an edit notice that also may need to be moved.

Event Timeline

It could be possible to slip this in via transclusions/imports to MediaWiki:Movepagetext-noredirectfixer

MediaWiki:Editnotice-0-PageWithAnEditNotice2022 should be moved by the software (if it doesn't already), but as you correctly state at Template:Editnotices/Page/PageWithAnEditNotice2022, the template stuff is a hack and I don't think it is something MediaWiki should be responsible for handling.

Whenever there are subpages, you see a warning about needing to move them too (and a checkbox to do so, if you have the move-subpages right). I think Special:MovePage should also query for the existence of the canonical edit notice (MediaWiki:Editnotice-[ns]-[pagetitle]) and warn about that, possibly also providing a checkbox to move it. That I suppose would require the editinterface permission since the edit notice is in the MediaWiki namespace. However that means any normal page mover could move pages and bypass moving the edit notice -- not any different than the status quo, but not ideal either. We should at least show the warning.

This FR isn't really about 'moving the edit notices along with the page' (which could be its own FR) - but "presenting" them - which the move dialog currently does not do. You could have a EN along the lines of "This page should not be renamed without consulting XXXX, the current title has been approved by ZZZZ after lengthy consideration".

Possible hackaround (for projects using the other EN hack) was to put this in to noredirectfixer - lots more testing needed

{{#ifexist: Template:Editnotices/Page/{{#titleparts: {{SUBPAGENAME}} | | 2 }} | {{Editnotices/Page/{{#titleparts: {{SUBPAGENAME}} | | 2 }}}}<br /><br /> | }}