Page MenuHomePhabricator

Doesn't work with both template and wiki family.
Closed, DuplicatePublic

Description

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.

Event Timeline

Comseong raised the priority of this task from to Needs Triage.
Comseong updated the task description. (Show Details)
Comseong added a project: PageImages.
Comseong subscribed.

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!

Comseong renamed this task from Doesn't work with wiki family. to Doesn't work with both template and wiki family..Sep 16 2015, 3:15 AM
Comseong updated the task description. (Show Details)
Comseong set Security to None.

Modified the description. Thank you.

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!

If this is not related to Template, I think root cause would be same as it. Thanks.