https://bugzilla.wikimedia.org/show_bug.cgi?id=25590
Derk-Jan Hartman <hart...@videolan.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hart...@videolan.org --- Comment #4 from Derk-Jan Hartman <hart...@videolan.org> 2010-10-22 11:48:42 UTC --- Author and license will be problematic, since that is not yet standardized, but in Commons, we are now introducing classes that contain that type of info and this is used by the Stockphoto gadget. http://commons.wikimedia.org/wiki/MediaWiki:Stockphoto.js For now however, such information will have to continue to be scraped from the html descriptions. AMW, does not scrape. It makes best guesses based on the categories that images are in, but that really is not a foolproof system. And actually, based on feedback stockphoto so far has gotten, might even be heavily objected to by the Commons community. However what AMW does is a rather simple thing. http://commons.wikimedia.org/w/api.php?callback=jsonp1287747638197&action=query&generator=search&gsrsearch=Gondizalves&gsrnamespace=6&gsrwhat=text&gsrlimit=30&gsroffset=0&prop=imageinfo%7Crevisions%7Ccategories&iiprop=url%7Cmime%7Csize%7Cmetadata&iiurlwidth=80&rvprop=content&format=json This runs a jsonp callback with the results generated by a search for Gondizalves in the File namespace. max 30 results. It gives for each results, the imageinfo, revisions (wikicode of the description page) and categories that said results are connected to. Of the imageinfo, descriptionurl, fileurl, mime, size, dimensions and metadata are provided, as well as links for 80px wide thumbnails (with dimension info). As you can see, that part is the easy part. licenses and authors are the hard part :D -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l