رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: 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
- یہ پیرامیٹر لازمی ہے۔
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
مثالیں
- 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 [تختۂ مشق میں کھولیں]