Last modified: 2013-10-04 06:05:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56916, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54916 - expandtemplates for {{TFA title}} not giving proper title.
expandtemplates for {{TFA title}} not giving proper title.
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-03 10:11 UTC by Harin Sutaria
Modified: 2013-10-04 06:05 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Harin Sutaria 2013-10-03 10:11:20 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?
Comment 1 Brad Jorsch 2013-10-03 14:57:05 UTC
The API is returning the correct result. [[Template:TFA title/October 3, 2013]] does not currently exist on enwiki.
Comment 2 Brad Jorsch 2013-10-03 15:06:11 UTC
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.
Comment 3 Harin Sutaria 2013-10-04 06:05:54 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links