Last year we had a nice widget showing last uploads http://toolserver.org/~prolineserver/wlm/ Will it work for this edition or does it need some update?
Vicenç
Hi,
Thanks everybody for pinging me. I didn't even remember I forked that script there... Anyway, I looked into it and it seems to work again, except for two small details: * There are no images for 2013 yet. * The script expects all images to be in a single category. I didn't find a simple way to get images in a sub-category using the api, i.e. https://commons.wikimedia.org/w/api.php?action=query&generator=categorym... doesn't work if images aren't directly in the main category. Any Ideas how I get them using the API without having to recursively go through all subcategories? https://www.mediawiki.org/wiki/API:Categorymembers doesn't help too much.
Please feel free to fork the script if you like, you can just grab it with wget.
//Holger
On Tue, Aug 27, 2013 at 8:42 PM, Vicenç Riullop vriullop@hotmail.comwrote:
Last year we had a nice widget showing last uploads http://toolserver.org/~prolineserver/wlm/ Will it work for this edition or does it need some update?
Vicenç
Wiki Loves Monuments mailing list WikiLovesMonuments@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments http://www.wikilovesmonuments.org
On 27/08/13 23:00, Holger Motzkau wrote:
Hi,
Thanks everybody for pinging me. I didn't even remember I forked that script there... Anyway, I looked into it and it seems to work again, except for two small details:
- There are no images for 2013 yet.
- The script expects all images to be in a single category. I didn't
find a simple way to get images in a sub-category using the api, i.e. https://commons.wikimedia.org/w/api.php?action=query&generator=categorym... https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Images_from_Wiki_Loves_Monuments&prop=imageinfo&gcmlimit=500&gcmnamespace=6 doesn't work if images aren't directly in the main category. Any Ideas how I get them using the API without having to recursively go through all subcategories? https://www.mediawiki.org/wiki/API:Categorymembers doesn't help too much.
Please feel free to fork the script if you like, you can just grab it with wget.
//Holger
[[Category:Images from Wiki Loves Monuments 2013]] will directly contain all files, so no need to recurse sub-categories (and no, the api doesn't allow that).
Regards
OK, thanks! Now there are two images and it works. //Holger
On Wed, Aug 28, 2013 at 12:00 AM, Platonides platonides@gmail.com wrote:
On 27/08/13 23:00, Holger Motzkau wrote:
Hi,
Thanks everybody for pinging me. I didn't even remember I forked that script there... Anyway, I looked into it and it seems to work again, except for two small details:
- There are no images for 2013 yet.
- The script expects all images to be in a single category. I didn't
find a simple way to get images in a sub-category using the api, i.e. https://commons.wikimedia.org/**w/api.php?action=query&** generator=categorymembers&**gcmtitle=Category:Images_from_** Wiki_Loves_Monuments&prop=**imageinfo&gcmlimit=500&**gcmnamespace=6https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Images_from_Wiki_Loves_Monuments&prop=imageinfo&gcmlimit=500&gcmnamespace=6 <https://commons.wikimedia.**org/w/api.php?action=query&** generator=categorymembers&**gcmtitle=Category:Images_from_** Wiki_Loves_Monuments&prop=**imageinfo&gcmlimit=500&**gcmnamespace=6https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Images_from_Wiki_Loves_Monuments&prop=imageinfo&gcmlimit=500&gcmnamespace=6> doesn't work if images aren't directly in the main category. Any Ideas how I get them using the API without having to recursively go through all subcategories? https://www.mediawiki.org/**wiki/API:Categorymembershttps://www.mediawiki.org/wiki/API:Categorymembersdoesn't help too much.
Please feel free to fork the script if you like, you can just grab it with wget.
//Holger
[[Category:Images from Wiki Loves Monuments 2013]] will directly contain all files, so no need to recurse sub-categories (and no, the api doesn't allow that).
Regards
______________________________**_________________ Wiki Loves Monuments mailing list WikiLovesMonuments@lists.**wikimedia.orgWikiLovesMonuments@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/**wikilovesmonumentshttps://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments http://www.wikilovesmonuments.**org http://www.wikilovesmonuments.org
wikilovesmonuments@lists.wikimedia.org