I need a set of API calls that return both links to image pages and
links to the fullsize, rotated images, filtered by category or,
ideally, by property.
I feel like I'm combining action=ask and action=query, but maybe what
I'm looking for can be done with a generator, which I'm still pretty
First query uses list=allimages, which gets the metadata and the image sizes:
I guess the first question is "Can I add a filter by Category or
Property to that query?"
Info at http://www.mediawiki.org/wiki/API:Allimages indicates probably not.
I can filter by category, of course, with an ask query, assuming all
photo pages are categorized as "UploadedPhotos":
I _think_ what I'm looking for here is a generator, a way to say "Pass
the results of the ask query to the images query". But I'm stuck on
how to do this.
Ultimately, I need to get the url that's the same one as the largest
sized image from any image page, e.g. in this page:
Because the first link will rotate the image if the EXIF indicates an