Hi, I have a question about the functionality of the API on zh.wikipedia.org :
It appears that the API isn't performing redirects that involve conversion of certain simplified Chinese page titles to traditional, but these redirects _are_ supported by the wiki's frontend. For example:
When I enter http://zh.wikipedia.org/wiki/%EF%BF%BD%EF%BF%BD%EF%BF%BD%C5%B7%C9%BC%EF%BF%B... into my browser, this redirects automatically to http://zh.wikipedia.org/wiki/%EF%BF%BD%EF%BF%BD%EF%BF%BDT%EF%BF%BDw%EF%BF%BD....
But when I do the equivalent query through the api with redirects enabled ( http://zh.wikipedia.org/w/api.php?action=query&titles=%EF%BF%BD%EF%BF%BD...), I get no results.
Other simplified to traditional redirects do work in both the frontend and the API. For example both http://zh.wikipedia.org/wiki/%EF%BF%BD%D0%B9%EF%BF%BDand http://zh.wikipedia.org/wiki/%EF%BF%BD%D0%87%EF%BF%BD lead to the same page. I do notice that here, unlike in my previous example, the request for the simplified title shows on the page that the results are a redirect (���ض������й�http://zh.wikipedia.org/w/index.php?title=%E4%B8%AD%E5%9B%BD&redirect=no ��), so something different must be going on.
Does anyone know what's going on here, or is there another Chinese language forum I should address this question to?
Many thanks,
Joel
2011/11/24 Joel Rosen joel.rosen@gmail.com:
But when I do the equivalent query through the api with redirects enabled (http://zh.wikipedia.org/w/api.php?action=query&titles=%E9%BE%99%E9%97%A8...), I get no results.
Use https://zh.wikipedia.org/w/api.php?action=query&titles=%E9%BE%99%E9%97%A...
Roan
Thank you, that worked!
Seems this is undocumented, no?
2011/11/24 Roan Kattouw roan.kattouw@gmail.com
2011/11/24 Joel Rosen joel.rosen@gmail.com:
But when I do the equivalent query through the api with redirects enabled (http://zh.wikipedia.org/w/api.php?action=query&titles=%E9%BE%99%E9%97%A8...),
I
get no results.
Use https://zh.wikipedia.org/w/api.php?action=query&titles=%E9%BE%99%E9%97%A...
Roan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi,
Seems this is undocumented, no?
It is documented. Open http://zh.wikipedia.org/w/api.php and search for “converttitles”.
Petr Onderka [[en:User:Svick]]
While this is useful self-documentation, most people expect API documentation and proper use to be documented at: http://www.mediawiki.org/wiki/API
On Thu, Nov 24, 2011 at 2:46 PM, Petr Onderka gsvick@gmail.com wrote:
Hi,
Seems this is undocumented, no?
It is documented. Open http://zh.wikipedia.org/w/api.php and search for “converttitles”.
Petr Onderka [[en:User:Svick]]
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org