Page MenuHomePhabricator

allow resolution of MyXXX pages to their respective redirect targets via the API
Closed, DeclinedPublic

Description

It would be convenient to know which of the MY... aliases/shortcuts existed on a wiki, at the moment one has to know to apply the show language code, or know that they are listed that way through [[Special:AllMessages]] and then guess where they point in the respective languages.

mycontris
mypage
mypreferences
myskin.css
myskin.js
mytalk
mywatchlist

It was suggested that meta=siteinfo was a useful place to have the addition. Thanks for that consideration.


Version: unspecified
Severity: enhancement

Details

Reference
bz32722

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:05 AM
bzimport set Reference to bz32722.
bzimport added a subscriber: Unknown Object (MLST).

Those aren't "special page aliases", those are something else in our jargon. I'm not quite sure what to call them. However, extracting this data isn't easy because these are special pages that magically redirect to other pages (in a variable way, because it depends on your user name).

huh, i just found out, that the actual special page aliasses can be fethced from the api:

http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=specialpagealiases

but that's not what you asked for. I misunderstood that at first.

I guess you want to resolve mypage, etc, to the page they would redirect to for a given user. That could be implemented in the API too, but it's not there yet, afaik.

I couldn't even find a list of the pages, that said MyWhatever, so I know could see where they redirected. Now I know where to find specialoagealiases, I can test and build such a list, at least for English. Probably something that those more competent than I can help build to a constructive list across the languages.

So what exactly is this bug requesting?

  1. A list of aliases for Special:Mypage and the like? meta=siteinfo&siprop=specialpagealiases returns that.
  2. The target for Special:Mypage? That's simple, just point to the User-namespace page for the current user, and concatenate any subpage or query parameters. The rest of the "My" special pages work similarly, and it's always the same for each one.
  3. Something else?

Bryan.TongMinh wrote:

It is possible to extract the required information, because SpecialMyPage and friends are children of RedirectSpecialPage, but per comment #4, I'm inclined to WONTFIX this request, since the four SpecialMy (SpecialMypage, SpecialMytalk, SpecialMycontributions, SpecialMyuploads) easily determinable by API users.

I am comfortable with the bulk of the responses about "specialpagealiases" being available and I believe that it will then need to be matched with subsidiary pages at [[mw:API:Meta]]. I had expected, though had been unable to find that information. I had hoped that there may have been the ability to get a simple list, however, a little digging through using that parameter will be necessary.

Bryan, you mention that that the 4x SpecialMy are easily determinable, I don't find them so, and I think that was my initial reflection, and I would encourage the consideration of where they may become more evident. I have more recently seen that when you know for what you are looking that you can find bits through the api via
[path]api.php?action=query&meta=allmessages
The issue is that you need to know for what to search, so it is a little circular in approach.

Again though this may be addressed by documentation at mw, it just isn't explicitly stated (from my looking). In lieu of that being available I will endeavour to get it into the Help pages at MW, and hopefully it will be updated as time passes.

If it is WONTFIX so be it, if there are some thought bubbles for the future, that is great. Thanks to all for your work, and your efforts, I appreciate it.

Anomie claimed this task.