低 貸し スロット 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 [サンドボックスで開く]