Page MenuHomePhabricator

If users can't edit a Wikipedia article, don't encourage them to edit its Wikidata item
Open, Needs TriagePublic

Description

To reduce vandalism we need to:

  • identify all the Wikipedias that show links from some articles to their corresponding Wikidata items,
  • find the best way of hiding these links from those users who can't edit the articles (i.e., non-(auto)confirmed users on semiprotected articles) but only to those users (T208315), and
  • apply the necessary changes or get them applied to all the identified Wikipedias.

Thread on wikitech-l: https://lists.wikimedia.org/pipermail/wikitech-l/2018-October/091049.html

See also T205783.

Event Timeline

abian created this task.Oct 22 2018, 11:02 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 22 2018, 11:02 AM
abian updated the task description. (Show Details)Oct 22 2018, 11:59 AM
Ivanhercaz added a subscriber: Ivanhercaz.
Haros added a subscriber: Haros.Oct 28 2018, 10:46 PM
abian updated the task description. (Show Details)Oct 28 2018, 11:36 PM

Looks like this could be addressed by adding a Skin body class that represents the result of the "quick" permissions check, similar to wgIsProbablyEditable.

Maybe <body class="mw-user-can-edit">. Then this can be used the same way as .client-js, .client-nojs and .action-view to automatically toggle the display of the relevant elements of the interface.

Looks like this could be addressed by adding a Skin body class that represents the result of the "quick" permissions check, similar to wgIsProbablyEditable.
Maybe <body class="mw-user-can-edit">. Then this can be used the same way as .client-js, .client-nojs and .action-view to automatically toggle the display of the relevant elements of the interface.

I like this approach. :-)

That class can be useful for any MediaWiki installation. Maybe we should open a new task to introduce it?

identify all the Wikipedias that show links from some articles to their corresponding Wikidata items,

I have looked at the webrequest logs before and patterns of projects referring to wikidata.
The projects with the most referers tend to have edit links of some sort.
It might be worth dashboarding this in some way, I'll have a think.

find the best way of hiding these links from those users who can't edit the articles (i.e., non-(auto)confirmed users on semiprotected articles) but only to those users, and

One of the big issues here are these edit links are all created in pretty adhoc ways.

abian added a comment.Oct 30 2018, 1:11 PM

A dashboard for this would be awesome. :D
Concerning the HTML class, I've just created T208315.

abian updated the task description. (Show Details)Nov 25 2018, 12:01 PM
abian added a comment.Nov 30 2018, 9:54 PM

Wikipedias already have .mw-editable (T208315) in their body elements when, given a user and a page, the user can edit the page. Now Wikipedians can hide those links to Wikidata items in an easier way; however, they should be told they have this resource and they should be encouraged to use it.