"Contributions from this IP address" for unregistered users on en.wikipedia
OpenPublic

Description

Author: armbrust

Description:
There was recently a proposal on enwiki for adding unregistered editors a link to the interface to easily reach their contribution, see: http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(proposals)/Archive_86#.22My_contributions.22_link_for_anonymous_IP_editors.


Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz36121.
bzimport created this task.Via LegacyApr 20 2012, 10:52 AM
Krinkle added a comment.Via ConduitApr 22 2012, 3:24 PM

Since this bug was filed in the "MediaWiki" product (not for Wikipedia specifically), I'll reply to it as such.

As already mentioned in the above linked discussion, there is an option in the software to show a link to the user page and talk page in the header ([[mw:Manual:$wgShowIPinHeader]], example on http://wikitech.wikimedia.org/index.php?title=Special:UserLogin).

By default the personal portlet contains only "Log in" (or "Log in / create account", depending on whether account registration is open). If $wgShowIPinHeader is enabled it contains:

  • 0.0.0.1
  • Talk for this IP address
  • Log in

We could extend the IP-header to also include:

  • Contributions from this IP address

However that still leaves one problem, and is that the IP-header is disabled on Wikipedia to allow static (user-independent) caching. So we'd have to figure out a way to expose this link without exposing the IP itself. Probably better to split it into two bugs. Moving this one to "Wikimedia site requests" and opened bug 36160 for the change in the software itself.

bzimport added a comment.Via ConduitApr 22 2012, 3:26 PM

beau wrote:

You can link to [[Special:MyContributions]].

bzimport added a comment.Via ConduitApr 22 2012, 3:29 PM

beau wrote:

If you don't want to wait for MediaWiki developers, just make a gadget similar to this one: https://pl.wikipedia.org/wiki/MediaWiki:Gadget-my-sandbox.js

Krinkle added a comment.Via ConduitApr 22 2012, 3:33 PM

(In reply to comment #2)

You can link to [[Special:MyContributions]].

Yes, that's what I suggested in bug 36160. The contributions link isn't the problem. The behavior in MediaWiki right now is that it either shows no tool links for unregistered users, or all links. And "all links" also contains a link to the User page that is labeled with the IP-address (see http://wikitech.wikimedia.org/index.php?title=Special:UserLogin ). For the link itself MyPage can be used but the label contains the IP-address ([[mw:Manual:$wgShowIPinHeader).

We could change the behavior to instead show a generic (without red/blue links) header for unregistered users that doesn't name the user by it's name (or IP in this case) but just says "My user page", or alternatively, we could remove the link to the User page alltogether, in most cases this was already removed in MediaWiki (showing a link to the contributions page instead for IP-users).

Krinkle added a comment.Via ConduitApr 22 2012, 3:36 PM

Using a gadget like https://en.wikipedia.org/wiki/MediaWiki:Gadget-mySandbox.js is a good way to test it and see whether it gives the expected result. Enable by default, and conditionally add the link "if ( mw.user.anonymous() )"

Nemo_bis added a comment.Via ConduitApr 4 2013, 9:22 PM

(In reply to comment #5)

Using a gadget like
https://en.wikipedia.org/wiki/MediaWiki:Gadget-mySandbox.js
is a good way to test it and see whether it gives the expected result. Enable
by default, and conditionally add the link "if ( mw.user.anonymous() )"

Needs to be done by sysops -> General/Unknown.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.