When editing a collection I should be able to do the following:
return this.postWithToken( 'watch', {
action: 'editlist', id: 3, before: 'Foo', titles: [ 'Bar' ]
} );
This inserts the title 'Bar' in the collection with id 3 before the title 'Foo' which is in the collection.
- If 'Foo' is not in the collection OR no before parameter is given it adds the new item to the end of the list and throws a warning
- If 'Foo' is in the collection, it positions the new member(s) before the item 'Foo'
['X', 'Y', 'Foo'] => ['X', 'Y', 'Bar', 'Foo']
['X', 'Y'] => ['X', 'Y', 'Bar']
When I query the members of this collection, I can specify order: 'manual' which orders the collection by the
{ action: 'query', generator: 'listpages', glsporder: 'manual', glspid: 3, glsplimit: 50 };