Add editnotices to prop=info
Open, NormalPublic

Description

The new method Title::getEditNotices can be used to provide the editnotices on prop=info.

can be look like:
<editnotices>

<editnotice msg="message-name">html</editnotice>

</editnotices>

Thanks.


Version: 1.21.x
Severity: enhancement

Details

Reference
bz43683
bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz43683.
bzimport added a subscriber: Unknown Object (MLST).

I wonder whether it would be better for prop=info to return the names of the messages containing the notice instead of parsing them itself. The client could parse these using action=parse if it wants HTML.

The main drawback to parsing them in prop=info is that parsing is expensive; prop=revisions, for example, will error out if asked to parse more than one revision, and if we'd add editnotices with parsed output to prop=info we'd have to do something similar there.

On a side note, I still don't understand what happened with r48276. Per-page edit noticed were half removed, but the removal wasn't finished even after this was pointed out, and then they were added back 2.5 years later.

Change 74963 had a related patch set uploaded by Umherirrender:
Api: Add editnotices to prop=info

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

Change 74963 abandoned by Umherirrender:
Api: Add editnotices to prop=info

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

Anomie moved this task from Needs details or plan to Needs Code on the MediaWiki-API board.