رہنمائے میڈیاویکی اےپی‌آئی

ذیل میں میڈیاویکی اےپی‌آئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔

دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=protect

(main | protect)
  • اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
  • اس ماڈیول کو اختیارات تحریر درکار ہیں۔
  • یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
  • ماخذ: MediaWiki
  • اجازت نامہ: GPL-2.0-or-later

صفحہ کے درجۂ حفاظت کو تبدیل کرتا ہے۔

مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
title

Title of the page to (un)protect. Cannot be used together with pageid.

pageid

ID of the page to (un)protect. Cannot be used together with title.

Type: integer
protections

List of protection levels, formatted action=level (e.g. edit=sysop). A level of all means everyone is allowed to take the action, i.e. no restriction.

Note: Any actions not listed will have restrictions removed.

یہ پیرامیٹر لازمی ہے۔
Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
expiry

Expiry timestamps. If only one timestamp is set, it'll be used for all protections. Use infinite, indefinite, infinity, or never, for a never-expiring protection.

Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
طے شدہ: infinite
reason

Reason for (un)protecting.

طے شدہ: (خالی)
tags

Change tags to apply to the entry in the protection log.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): Peshkar، RenameCategory، quick linker، repeated xwiki CoI abuse، twinkle، اضافہ القاب، القاب، تخلیق مختصر مضمون(AF)، جائزہ لیے جانے کے قابل ترامیم، غیر اردو شراکتیں
cascade

Enable cascading protection (i.e. protect transcluded templates and images used in this page). Ignored if none of the given protection levels support cascading.

طرز: بولین (تفصیلات)
watch
Deprecated.

If set, add the page being (un)protected to the current user's watchlist.

طرز: بولین (تفصیلات)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

ذیل کی قدروں میں سے کوئی ایک: nochange، preferences، unwatch، watch
طے شدہ: preferences
watchlistexpiry

Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.

Type: expiry (details)
token

A "csrf" token retrieved from action=query&meta=tokens

یہ پیرامیٹر لازمی ہے۔