I want to get a source of a image in template. When I use this "/api.php?action=query&prop=pageimages&format=json&piprop=thumbnail&pithumbsize=528&titles=<page title>" API URL, it doesn't get the source of the image. But when I added "&generator=images" the end of the API URL, it works.
Our site is working as wiki family of 3 languages(uz, en and ru). All images are uploaded to only uz domain and all 3 domains will share the image. I want to use this API("/api.php?action=query&prop=pageimages&format=json&piprop=thumbnail&pithumbsize=528&titles=<page title>&generator=images" at en domain to find a source of a image which is located physically in uz domain. This API works at uz domin. But I used this API to get a source of a image in template at en domain, it doesn't work. The Wiki version is 1.24 and the extension is also for the Wiki version.
Description
Description
Event Timeline
Comment Actions
Thank you for taking the time to raise this bug! Could I ask you to elaborate with further details? In particular:
- Which API url are you using?
- What does it returning
- What are you expecting it to return?
Thank you!
Comment Actions
I installed the API sandbox in the wiki so you can test it.
Works: http://uz.samarkandtour.org/index.php/Maxsus:ApiSandbox#action=query&prop=pageimages&format=json&piprop=thumbnail&pithumbsize=528&titles=Sabina&generator=images
Doesn't works: http://en.samarkandtour.org/index.php/Special:ApiSandbox#action=query&prop=pageimages&format=json&piprop=thumbnail&pithumbsize=528&titles=Sabina&generator=images
Comment Actions
Thanks for explanation! It looks like the above bug so I've merged the two. Please unmerge them if you don't think that covers your problem!