Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

API: Add a way to get the associated talk/subject page of a title
Closed, ResolvedPublic

Description

As a script developer,
I want to be able to retrieve the title of the talk/subject page associated with another title,
in the context of a foreign wiki

For the local wiki, mw.Title can be used, but that doesn't support representing titles on other wikis as far as I can tell.

This would be suitable for the query info api, which already supports returning the page ids for the associated pages

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Legoktm renamed this task from Add a method to get the associated talk/subject page of a title to API: Add a way to get the associated talk/subject page of a title.Jul 6 2020, 9:09 AM

I imagine this would fit in prop=info, maybe with inprop=associated or something.

inprop already includes talkid for the page id, if any, of the talk page, and subjectid for the page id, if any, of the subject page. Should we add associatedpage for the string and, if available, the page id, for fetching the info of the associated page, rather than splitting it into talk page and subject page?

eprodromou triaged this task as Medium priority.
eprodromou subscribed.

OK, looks like this is something I should help out with. Is the main issue that it's hard to do the bitwise math on namespace numbers...? I need to examine this further.

OK, looks like this is something I should help out with. Is the main issue that it's hard to do the bitwise math on namespace numbers...? I need to examine this further.

Title::getOtherPage should take care of the namespace number issue

OK, looks like this is something I should help out with. Is the main issue that it's hard to do the bitwise math on namespace numbers...? I need to examine this further.

@eprodromou any updates? You claimed this task in July - if you'd like, I'm happy to work on it instead?

Resetting assignee, account has been deactivated on phabricator

Change 698666 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/core@master] ApiQueryInfo: add `associatedpage` prop

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

Change 698666 merged by jenkins-bot:

[mediawiki/core@master] ApiQueryInfo: add `associatedpage` prop

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

Umherirrender assigned this task to DannyS712.