MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
submodule=setsorting
(main | collection | setsorting)
- Voor deze module zijn leesrechten nodig.
- Bron: Collection
- Licentie: GPL-2.0-or-later
API module for reordering items in a collection
Parameter:
- items
Items should be listed using their old index and ordered by their new position
- Deze parameter is vereist.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
Voorbeelden:
- In a collection of 3 items, swap the first and second item
- api.php?action=collection&submodule=setsorting&items=1|0|2 [open in de zandbak]
- In a collection of 3 items, make the 3rd item first, and delete the 2nd item
- api.php?action=collection-setsorting&items=2|0 [open in de zandbak]