MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=block
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0+
منع مستخدم.
- user
اسم المستخدم، أو عنوان IP أو نطاق عنوان IP لمنعه. لا يمكن أن يُستخدَم جنبا إلى جنب مع userid
- Type: user name
- userid
معرف المستخدم لمنعه، لا يمكن أن يُستخدَم جنبا إلى جنب مع user
- Type: integer
- expiry
Expiry time. May be relative (e.g. 5 months or 2 weeks) or absolute (e.g. 2014-09-18T12:34:56Z). If set to infinite, indefinite, or never, the block will never expire.
- Default: never
- reason
السبب للمنع.
- Default: (empty)
- anononly
منع المستخدمين المجهولين فقط (أي تعطيل تعديلات المجهولين من عنوان IP هذا).
- Type: boolean (details)
- nocreate
امنع إنشاء الحسابات.
- Type: boolean (details)
- autoblock
منع آخر عنوان IP مستخدم تلقائيا، وأية عناوين IP لاحقة حاولت الدخول من خلاله.
- Type: boolean (details)
- noemail
منع المستخدم من إرسال البريد الإلكتروني من خلال الويكي. (يتطلب صلاحية
blockemail
).- Type: boolean (details)
- hidename
إخفاء اسم المستخدم من سجل المنع. (يتطلب صلاحية
hideuser
).- Type: boolean (details)
- allowusertalk
تسمح للمستخدم بتحرير صفحة النقاش الخاصة (يعتمد على $wgBlockAllowsUTEdit).
- Type: boolean (details)
- reblock
If the user is already blocked, overwrite the existing block.
- Type: boolean (details)
- watchuser
مشاهدة صفحة المستخدم ونقاش IP.
- Type: boolean (details)
- tags
Change tags to apply to the entry in the block log.
- Values (separate with | or alternative):
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- منع عنوان IP 192.0.2.5 لمدة ثلاثة أيام بسبب >المخالفة الأولى</kbd>.
- api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC [open in sandbox]
- منع المستخدم المخرب لأجل غير مسمى بسبب التخريب، ومنع إنشاء حساب جديد وإرسال بريد إلكتروني.
- api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC [open in sandbox]