Page MenuHomePhabricator

Protection indicators should include the protection level in a human-readable format
Closed, ResolvedPublic

Description

the protection indicator (T12347) has a title attribute that informs the reader about that the page they're currently reading is protected and only the users with a specific right can edit it (MediaWiki:Protection-indicator-title or Protection-indicator-title-infinity). however, the name of that right is displayed in an «internal technical» format, i.e. something that shouldn't be seen by common users but should stay behind the curtain. see an example below from azwiki, where this feature was enabled (T371440):

Снимок экрана 2025-10-26 в 1.50.58 AM.png (886×146 px, 141 KB)

not only this looks ugly inside a non-technical running text, but it also confuses readers, especially those who don't speak english or aren't familiar with the actual names of the user groups. it should look like this instead (screenshot from a local environment):

Снимок экрана 2025-10-26 в 2.08.08 AM.png (928×156 px, 39 KB)

Event Timeline

Change #1198667 had a related patch set uploaded (by Əkrəm; author: Əkrəm):

[mediawiki/core@master] display the group name in a prettier way in the protection indicators

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

Nemoralis renamed this task from protection indicators should include the protection level in a human-readable format to Protection indicators should include the protection level in a human-readable format.Oct 31 2025, 9:11 PM

I completely agree, it would probably be desirable to display user groups that can edit the page.

Change #1225016 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Use 'restriction-level-*' messages in more places

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

Change #1225016 merged by jenkins-bot:

[mediawiki/core@master] Use 'restriction-level-*' messages in more places

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

Change #1198667 abandoned by Bartosz Dziewoński:

[mediawiki/core@master] display the group name in a prettier way in the protection indicators

Reason:

Superseded by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1225016

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