Last modified: 2013-10-04 06:05:54 UTC
I am using the following API to retrieve the todays featured article. This way was working till yesterday and was giving me proper title. Today it is not giving me the titles properly. For example the following API http://en.wikipedia.org/w/api.php?action=expandtemplates&format=json&text={{TFA%20title}} is returning me the following json output { expandtemplates: { *: "[[:Template:TFA title/October 3, 2013]]" } } Ideally it should have returned me the following; { expandtemplates: { *: "[[USS_Lexington_(CV-2)]]" } } Has there been any change in the expandtemplates API call?
The API is returning the correct result. [[Template:TFA title/October 3, 2013]] does not currently exist on enwiki.
I note that the template has now been created on enwiki, and the API is continuing to give the correct output by now giving the results that were originally expected. Harin Sutaria, this is the second time (the first was bug 51508) where you've filed a bug claiming that expandtemplates was not working correctly when the real problem was bad data in the templates you were trying to expand. In the future, please check for this before filing such bugs; if you cannot do so yourself, please post on [[en:Wikipedia:Village pump (technical)]] to ask for confirmation from others. Thanks.
Thanks for the help. I understand that I have logged bug which was not right. I will take care next time around. I had a few other issues with the API and the data which is returned which I wanted to get clarifications on. Hopefully I can get that from Village pump. Once again, I apologize for the inconvenience it has caused you.