Hi,
sorry for bothering you again with the Mediawiki API. I have the following problem / question: I'm looking for a query that returns all internal links on a specific Wiki-Page. The query.
http://en.wikipedia.org/w/api.php?action=query http://en.wikipedia.org/w/api.php?action=query&pageids=328877&generator=lin ks&prop=info&gpllimit=500 &pageids=328877&generator=links&prop=info&gpllimit=500
.returns a set of results that exactly look like I want it, i.e. it returns a pageid and title of each "subpage".
However, there are numerous subpages in this list that are not listed on the corresponding wiki page (http://en.wikipedia.org/wiki/Alan_Jackson). E.g., the query result consists of a subpage "Ace in the Hole" but the wiki page doesn't.
Thanks for your help and patience.
Bye Christian
On Thu, Oct 14, 2010 at 5:18 AM, Christian Koncilia christian.koncilia@gmx.net wrote:
Hi, http://en.wikipedia.org/w/api.php?action=query&pageids=328877&genera... However, there are numerous subpages in this list that are not listed on the corresponding wiki page (http://en.wikipedia.org/wiki/Alan_Jackson). E.g., the query result consists of a subpage “Ace in the Hole” but the wiki page doesn’t.
A hint is: Are you sure you're looking at the right page in the api query?
2010/10/14 Christian Koncilia christian.koncilia@gmx.net:
http://en.wikipedia.org/w/api.php?action=query&pageids=328877&genera...
[snip]
However, there are numerous subpages in this list that are not listed on the corresponding wiki page (http://en.wikipedia.org/wiki/Alan_Jackson).
Page ID 328877 does not correspond to [[Alan Jackson]], but to [[List of music performers]], see http://en.wikipedia.org/w/api.php?action=query&pageids=328877&prop=i... .
Roan Kattouw (Catrope)
What a stupid mistake! Sorry for bothering you and thanks for the help...
Bye Christian
-----Ursprüngliche Nachricht----- Von: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] Im Auftrag von Roan Kattouw Gesendet: Donnerstag, 14. Oktober 2010 18:52 An: MediaWiki API announcements & discussion Betreff: Re: [Mediawiki-api] Difference between Query-Result and the Wiki-Page
2010/10/14 Christian Koncilia christian.koncilia@gmx.net:
http://en.wikipedia.org/w/api.php?action=query&pageids=328877&genera... r=links&prop=info&gpllimit=500
[snip]
However, there are numerous subpages in this list that are not listed on the corresponding wiki page
(http://en.wikipedia.org/wiki/Alan_Jackson). Page ID 328877 does not correspond to [[Alan Jackson]], but to [[List of music performers]], see http://en.wikipedia.org/w/api.php?action=query&pageids=328877&prop=i... .
Roan Kattouw (Catrope)
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org