Page MenuHomePhabricator

Adjusting protection messages on Wikitech
Open, Needs TriagePublic

Description

Currently, the message given when someone tries to access a page without logging in isn't helpful:

You do not have permission to edit this page, for the following reasons:
The action you have requested is limited to users in the group: Users.
This page has been protected to prevent editing or other actions.
You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

I'd like to change it to be more meaningful (in line with most other Wikimedia projects). Not sure whether this is something you (the admins of the project) would be OK with it, so asking here.

(this would also require admin or interface-admin (not contentadmin) + importer, though it can be temporary)

Event Timeline

Could you perhaps provide the text you want to change it to or something simmilar?

in line with other Wikimedia projects

What do other Wikimedia projects do? Please include expected behavior in tickets - thanks!

in line with other Wikimedia projects

What do other Wikimedia projects do? Please include expected behavior in tickets - thanks!

Apologies. Here's https://meta.wikimedia.org/w/index.php?title=Main_Page&action=edit and https://en.wikipedia.org/w/index.php?title=Main_Page&action=edit - this is what I mean by "in line with other Wikimedia projects". Notice that it clearly explains the issue in hand and also provides appropriate suggestions.

Could you perhaps provide the text you want to change it to or something similar?

Something around the lines of the Meta equivalent (that is derived from Wikibooks), with Wikitech-specific modifications (such as the fact that unregistered editing is simply not allowed and that it's not SUL). This would involve importing the relevant templates from these wikis if needed.

Well, it should be no problem to add / change the relevant pages in MediaWiki namespace, but I do not have the relevant user group rights (editinterface).

The message pointed to at meta as superior is (protectedpagetext: editprotected, edit) in qqx and rendered by the https://meta.wikimedia.org/wiki/MediaWiki:Protectedpagetext message override.

On wikitech the message that would need overriding the most is probably https://wikitech.wikimedia.org/wiki/MediaWiki:Badaccess-groups. The https://wikitech.wikimedia.org/wiki/MediaWiki:Protectedpagetext message is also used, as is https://wikitech.wikimedia.org/wiki/MediaWiki:Confirmedittext. The qqx version of things shown when trying to edit the wikitech main page without being authenticated is:

(permissionserrorstext-withaction: 3, (action-edit))

(badaccess-groups: (group-user), 1)
(protectedpagetext: editsemiprotected, edit)
(confirmedittext)

This set of system messages and arguments turns into the reported English messages:

  • (permissionserrorstext-withaction: 3, (action-edit)) -> You do not have permission to edit this page, for the following reasons:
  • (badaccess-groups: (group-user), 1) -> The action you have requested is limited to users in the group: Users.
  • (protectedpagetext: editsemiprotected, edit) -> This page has been protected to prevent editing or other actions.
  • (confirmedittext) -> You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

I actually haven't found a local override for MediaWiki:Badaccess-groups yet to borrow ideas from yet. There is no override for that message on meta, mediawiki.org, or enwiki.

I actually haven't found a local override for MediaWiki:Badaccess-groups yet to borrow ideas from yet. There is no override for that message on meta, mediawiki.org, or enwiki.

This just means that anonymous editors are not allowed, and I would change it to reflect that. Something like "to edit Wikitech, please log in".

I actually haven't found a local override for MediaWiki:Badaccess-groups yet to borrow ideas from yet. There is no override for that message on meta, mediawiki.org, or enwiki.

This just means that anonymous editors are not allowed, and I would change it to reflect that. Something like "to edit Wikitech, please log in".

In this very particular case you are correct that any authenticated user satisfies the missing group-user right. The thing that might not be obvious is that any message override we create will be used for all badaccess-groups responses and these could be parameterized with other needed rights which are not satisfied by merely authenticating. I am not sure that there are any other group based restrictions on page edits configured for Wikitech today--there very well may not be any--but there is no guarantee that there will not be others in the future. Overriding the system message to document one specific error cause and resolution without support for other messages that the system may be trying to present will actually make confusion worse rather than better.

I know I am an insider in my use of both Wikitech and MediaWiki, but the current message: "The action you have requested is limited to users in the group: Users." actually provides factual information and if you click through to the page on meta that it links to seems to clearly state that the fix is authenticating to the wiki.

I actually haven't found a local override for MediaWiki:Badaccess-groups yet to borrow ideas from yet. There is no override for that message on meta, mediawiki.org, or enwiki.

This just means that anonymous editors are not allowed, and I would change it to reflect that. Something like "to edit Wikitech, please log in".

In this very particular case you are correct that any authenticated user satisfies the missing group-user right. The thing that might not be obvious is that any message override we create will be used for all badaccess-groups responses and these could be parameterized with other needed rights which are not satisfied by merely authenticating. I am not sure that there are any other group based restrictions on page edits configured for Wikitech today--there very well may not be any--but there is no guarantee that there will not be others in the future. Overriding the system message to document one specific error cause and resolution without support for other messages that the system may be trying to present will actually make confusion worse rather than better.

I know I am an insider in my use of both Wikitech and MediaWiki, but the current message: "The action you have requested is limited to users in the group: Users." actually provides factual information and if you click through to the page on meta that it links to seems to clearly state that the fix is authenticating to the wiki.

The message could be adapted to handle them - like give the login message when it's only User while give the standard message in other cases.