Btw, I don't know if it's a bug or not, but
http://www.mediawiki.org/w/api.php?action=query&meta=tokens&rawcontinue=1&type=watch|patrol|rollback&format=xml
returns no tokens even when I am logged in. According to
always-up-to-date api.php I don't need to provide any more parameters
for this to work. Is that a bug?

On Thu, Oct 30, 2014 at 11:26 AM, Petr Bena <[email protected]> wrote:
> Hi,
>
> I said that I don't know how to do this correctly, so I can't fix the
> documentation. So no, I will not fix it, because I can't.
>
> Regarding your suggestion, it might be a good idea, but apparently
> even the "always up-to-date" API documentation returned by api.php is
> outdated and its example queries produces warning about deprecated
> values. Just have a look at
> http://www.mediawiki.org/w/api.php?action=help&modules=query%2Btokens
> which suggest http://www.mediawiki.org/w/api.php?action=query&meta=tokens
> which starts with a warning.
>
>
> On Thu, Oct 30, 2014 at 11:13 AM, [email protected]
> <[email protected]> wrote:
>> Why not use the always up-to-date API documentation returned by api.php 
>> itself? Rollback should be this doc-page:
>> http://www.mediawiki.org/w/api.php?action=help&modules=rollback
>>
>> Maybe you can help us fixing the API documentation, so, if you know, how to 
>> do a rollback, you can fix the doc on mw.org (don't forget to update the MW 
>> version the doc page refers to).
>>
>> Freundliche Grüße / Kind regards,
>> Florian Schmidt
>>
>> -----Original-Nachricht-----
>> Betreff: [Wikitech-l] rvtoken deprecated
>> Datum: Thu, 30 Oct 2014 10:13:11 +0100
>> Von: Petr Bena <[email protected]>
>> An: Wikimedia developers <[email protected]>
>>
>> Hello,
>>
>> I am receiving lot of these warnings:
>>
>> WARNING: API query (revisions): The rvtoken parameter has been deprecated.
>>
>> According to current documentation for mediawiki at
>> https://www.mediawiki.org/wiki/API:Rollback which I follow, in order
>> to get a rvtoken I should use this query:
>>
>> https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvtoken=rollback&titles=Main%20Page&format=xml
>>
>> however that very query returns this warning. Is this a bug in
>> documentation? Why do you first deprecate things and then, ages later,
>> update the docs? Shouldn't it be the other way? Mediawiki has worst
>> backward compatibility support I have ever seen and this is one of the
>> reasons for it.
>>
>> Thanks
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>>
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to