Would that be reversable? where inprop=talkid would return the talk page id if the page given is a main page, and inprop=mainid would return the main page if a talk page is given?
The other question that comes to mind is - would this work in other spaces? Like template-space or category-space? Thanks! --Ian On Sun, Mar 16, 2008 at 11:30 AM, Roan Kattouw <[EMAIL PROTECTED]> wrote: > Ian Cabell schreef: > > I don't know if others run in to this situation, but I'll throw this > > idea/request out there and see what folks think. > > > > A lot of what I use the API for is for WikiProjects. As such, I'm > > often getting a list of pages by looking for a project template, which > > is on the talk page. Then I have to turn that around and get the > > actual articles from main-space. > > > > So I was wondering about way to get the "switch" of a page id. The > > two possibilities I thought of are: > > > > action=query&prop=info&inprop=talkid&pageids=15580374 > > > > action=query&prop=revisions&titles=Talk:Main%20Page&rvprop=mainid > > > > Either one would take a page or set of pages and return either the > > talk page id or the mainspace id. > > > > Is this something that's doable? Desired? Thoughts? > The inprop=talkid suggestion sounds doable, I'll implement that soon. > > Roan Kattouw (Catrope) > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api > -- ---------------------------- Ian Cabell RadiantWeb Services ( 877 ) 406 - 6272 [toll free] [EMAIL PROTECTED] http://www.radiantweb.net "There is more than one right way .. to make it perfect!"
_______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
