راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wbremoveclaims

(main | wbremoveclaims)
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: WikibaseRepository
  • مجوز: GPL-2.0-or-later

اظهارات ویکی‌بیس را حذف می‌کند.

پارامترها:
Other general parameters are available.
claim

یک یا چند شناسۀ GU که اظهاراتی را مشخص می‌کند که بایستی حذف شوند. همه اظهارات به یک جوهره یکسان تعلق دارند.

این پارامتر الزامی است.
Separate values with | or alternative.
حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیت‌های بالاتر را دارند).
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

مقدارهای (جداشده با | یا جایگزین‌های آن):
token

یک بلیط «csrf» واکشی‌شده از action=query&meta=tokens

این پارامتر الزامی است.
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

نوع: عدد صحیح
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

نوع: بولی (جزئیات)
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

نوع: عنوان صفحه
صفحه‌های ناموجود را می‌پذیرد
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

پیش‌فرض: (خالی)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

پیش‌فرض: (خالی)
نمونه:
اظهار نظری با شناسۀ GU ی "Q42$D8404CDA-25E4-4334-AF13-A3290BCD9C0N" حذف می‌کند.
api.php?action=wbremoveclaims&claim=Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0N&token=foobar&baserevid=7201010 [باز کردن در صفحهٔ تمرین]