MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

submodule=setsorting

main | collection | setsorting
  • 此模块需要读取权限。
  • 来源:Collection
  • 许可协议:GPL-2.0-or-later

API module for reordering items in a collection

具体参数:
其他通用参数可用。
items

Items should be listed using their old index and ordered by their new position

这个参数是必需的。
类型:整数列表
通过|替代物隔开各值。
值的最大值为50(允许更高上限的客户端为500)。
例子:
In a collection of 3 items, swap the first and second item
api.php?action=collection&submodule=setsorting&items=1|0|2 [在沙盒中打开]
In a collection of 3 items, make the 3rd item first, and delete the 2nd item
api.php?action=collection-setsorting&items=2|0 [在沙盒中打开]