For consistency, prop=categories&clprop=timestamp now returns timestamps
in ISO 8601 format (e.g. 2008-08-23T18:05:46Z) rather than MediaWiki's
internal timestamp format (e.g. 20080823180546) as of r40161 [1]. All
timestamps that the API outputs are now in ISO 8601 format.
Roan Kattouw (Catrope)
[1] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=40161
This change only affects clients using the JSON, PHP, WDDX, PHP, TXT and
DBG formats. If you're using the XML or YAML formats, nothing will
change for you.
The list=backlinks, list=embeddedin and list=imageusage used to return
arrays with pageIDs as keys, duplicating information (those arrays also
contain the pageID). An example (in JSON):
{
"query": {
"backlinks": {
"1024": {
"pageid": "1024",
"ns": 1,
"title": "Talk:Anarcho-capitalism"
},
"1236": {
"pageid": "1236",
"ns": 1,
"title": "Talk:Algorithm"
}
}
}
}
After a complaint [1] about this behavior, it was changed in r39645 [2].
Like all other list= modules, backlinks and friends now return arrays
with 0, 1, 2, etc. as keys. In JSON this looks like:
{
"query": {
"backlinks": [
{
"pageid": "1024",
"ns": 1,
"title": "Talk:Anarcho-capitalism"
},
{
"pageid": "1236",
"ns": 1,
"title": "Talk:Algorithm"
}
]
}
}
Roan Kattouw (Catrope)
[1]
http://lists.wikimedia.org/pipermail/mediawiki-api/2008-August/000657.html
[2] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=39645
MediaWiki 1.13.0 is now available [1].
Selected changes to the API since 1.12.0:
* action=edit has been added. Note that $wgEnableWriteAPI = true; is required for this.
* list=allimages and prop=categoryinfo have been added.
* The blredirect, eiredirect and iuredirect (for list=backlinks, list=embeddedin and list=imageusage) have finally been implemented. Setting these parameters will list links through redirects as well.
* Paging (i.e. limit and continue parameters) have been added to prop=links, prop=templatelinks, prop=langlinks, prop=extlinks, prop=categories and prop=images. These modules no longer return all results by default, but only the first 10 (like list= modules do).
* Invalid titles no longer throw errors but are listed as invalid instead.
* Invalid values for multivalue parameters now throw warnings instead of errors
For a full list of changes to the API, see the section "API changes in 1.13" in the MediaWiki 1.13.0 release notes [2].
Roan Kattouw (Catrope)
[1] http://lists.wikimedia.org/pipermail/mediawiki-announce/2008-August/000076.…
[2] http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_13_0/phase3/RELEASE-NO…