미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

submodule=setsorting

(main | collection | setsorting)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: 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 [연습장에서 열기]