Помощ за МедияУики API

Това е автоматично генерирана страница за документация на МедияУики API.

Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=globalblock

(main | globalblock)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: GlobalBlocking
  • License: GPL-2.0-or-later

Глобално блокирайте или отблокирайте потребител.

Specific parameters:
Other general parameters are available.
target

The target IP address or username.

This parameter is required.
expiry

If specified, will block or reblock the user. Determines how long the block will last for, e.g. "5 months" or "2 weeks". If set to "infinite" or "indefinite" the block will never expire.

Type: expiry (details)
unblock

Ако е указано, потребителят ще бъде отблокиран.

Type: boolean (details)
reason

Причина за блокиране/отблокиране.

This parameter is required.
anononly

Specify this if the block should only affect logged-out users globally.

Type: boolean (details)
modify

Specify this if the existing block on the target should be modified

Type: boolean (details)
alsolocal

Block the user locally as well

Type: boolean (details)
localblockstalk

Revoke talk page access locally

Type: boolean (details)
localblocksemail

Revoke email access locally

Type: boolean (details)
localanononly

Specify this if the block should only affect logged-out users locally.

Type: boolean (details)
token

Маркер „csrf“, получен от action=query&meta=tokens

This parameter is required.