https://bugzilla.wikimedia.org/show_bug.cgi?id=22079
Summary: api.php returns wrong list of used templates
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
The following command
curl
'http://en.wikipedia.org/w/api.php?tllimit=500&format=json&action=query&prop=revisions|templates|images&imlimit=500&rvprop=ids&revids=317439556'
returns:
{
"query": {
"pages": {
"24520081": {
"ns": 2,
"pageid": 24520081,
"revisions": [
{
"parentid": 317439411,
"revid": 317439556
}
],
"title": "User:Headbomb/Sandbox9"
}
}
}
}
But http://en.wikipedia.org/w/index.php?oldid=317439556 uses the "cite web"
template, which is missing here. It looks like api.php returns the templates
used in the current version of an article even if asked for an older version.
(We need this to work for the collection extension. also see
http://code.pediapress.com/wiki/ticket/703)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l