MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=protect

(main | protect)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0+

غير مستوى الحماية لصفحة.

Parameters:
title

عنوان الصفحة ل (إزالة) الحماية. لا يمكن أن تُستخدَم بجانب pageid.

pageid

معرف الصفحة ل (إزالة) الحماية. لا يمكن أن تُستخدَم بجانب pageid.

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.

This parameter is required.
Separate values with | or alternative. Maximum number of values is ٥٠ (٥٠٠ for bots).
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 ٥٠ (٥٠٠ for bots).
Default: infinite
reason

سبب (إزالة) الحماية.

Default: (empty)
tags

تغيير وسوم لتطبيق الإدخال في سجل الحماية.

Values (separate with | or alternative):
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.

Type: boolean (details)
watch
Deprecated.

إذا تم الضبط، أضف الصفحة (غير) المحمية لقائمة مراقبة المستخدم الحالي.

Type: boolean (details)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

One of the following values: watch، unwatch، preferences، nochange
Default: preferences
token

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

This parameter is required.