Here is a complete example: https://test2.wikipedia.org/wiki/User:TheDJ/common.js
Note that for anything post+token related, it's a lot easier to use api.postWithEditToken() or api.postWithToken(). It does automatic token re-requesting if it expired.
DJ
On Tue, Nov 11, 2014 at 12:00 PM, John phoenixoverride@gmail.com wrote:
A maintenance script would solve nothing. It would defeat the goal of the tool. I am trying to enable users to quickly archive pages after reviewing them. If a script has to be run server side each time, it would just be easier to manually move the pages. What I am trying to do is enable one click moving from within the web browser. This shouldnt be rocket science, I can do it in 10 lines of python, but having a JavaScript version would make it simpler, and maintain attribution of who moved it.
On Tue, Nov 11, 2014 at 12:23 AM, svetlana svetlana@fastmail.com.au wrote:
John wrote:
My goal is a basic JavaScript tool for moving pages. On a private wiki
I
run it is often needed to archive material that is no longer needed, We dont like to delete because often this material is still useful.
Instead
we
move it to a custom namespace.
Might suggest using a maintainance script to do it: https://www.mediawiki.org/wiki/Manual:MoveBatch.php
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l