Last modified: 2010-05-15 16:02:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17996, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15996 - prop=links not include "redlink" (non-existant) pages
prop=links not include "redlink" (non-existant) pages
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-15 22:10 UTC by Sam Reed (reedy)
Modified: 2010-05-15 16:02 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2008-10-15 22:10:19 UTC
http://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Feature_requests#Listbuilder:_links_on_pages_excluding_red_links

User is requesting a way to build a list of links on page (so api prop=links), to only include "bluelinks"/not include "redlinks"

I suppose this is doable, but for AWB to do it, it would require various page loads (bad!). It would be doable easier via API, as it would be able to look up all titles in the database to see if pages exist...?

Is this feasible, or would it potentially be too much of a database hog?


Thanks
Comment 1 Bryan Tong Minh 2008-10-15 22:13:25 UTC
Use "links" as generator and check the "missing" attribute on prop=info.

http://en.wikipedia.org/w/api.php?action=query&generator=links&titles=Main%20Page&prop=info
Comment 2 Sam Reed (reedy) 2008-10-15 22:17:45 UTC
      <page ns="0" title="Not Really a WMF Page?" missing="" />

That'll do me - Cant reuse our code so simply to use the extra atrribute (we usually just pick off namespace and page), but thats doable

Easy enough to check if the missing="" is there

Thanks Bryan!
Comment 4 Sam Reed (reedy) 2008-10-16 14:01:58 UTC
That saves a bit of un-needed information :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links