Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
submodule=setsorting
(main | collection | setsorting)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: Collection
- Licence: GPL-2.0-or-later
API module for reordering items in a collection
Parametr:
- items
Items should be listed using their old index and ordered by their new position
- This parameter is required.
- Type: list of integers
- Hodnoty oddělujte pomocí | nebo alternativou.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
Příklady:
- In a collection of 3 items, swap the first and second item
- api.php?action=collection&submodule=setsorting&items=1|0|2 [otevřít v pískovišti]
- In a collection of 3 items, make the 3rd item first, and delete the 2nd item
- api.php?action=collection-setsorting&items=2|0 [otevřít v pískovišti]