Помоћ око Медијавикијевог API-ја
Ово је аутоматски генерисана документација за Медијавики API
Документација и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=globalblock
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Извор: GlobalBlocking
- Лиценца: GPL-2.0-or-later
Globally block or unblock a user.
- id
ID of the global block to modify or unblock (obtained through list=globalblocks). Cannot be used together with target.
- Type: integer
- target
The target IP address or username. Cannot be used together with id.
- Тип: корисник, по: корисничко име, IP, Привремени корисник и IP опсег
- 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
If specified, will unblock the user.
- Type: boolean (details)
- reason
The reason for blocking/unblocking.
- This parameter is required.
- anononly
Specify this if the block should only affect logged-out users globally.
- Type: boolean (details)
- allow-account-creation
Specify this if the global block should not prevent account creation.
- Type: boolean (details)
- enable-autoblock
Specify this if the global block should trigger global autoblocks.
- Type: boolean (details)
- modify
Specify this if the existing block on the target should be modified
- Type: boolean (details)
- alsolocal
Такође блокирај корисника локално. Не може се користити заједно са id.
- Type: boolean (details)
- localblockstalk
Revoke talk page access locally. Cannot be used together with id.
- Type: boolean (details)
- localblocksemail
Revoke email access locally. Cannot be used together with id.
- Type: boolean (details)
- localanononly
Specify this if the block should only affect logged-out users locally. Cannot be used together with id.
- Type: boolean (details)
- local-allow-account-creation
Specify this if the local block should not prevent account creation. Cannot be used together with id.
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- Block 192.0.2.1 indefinitely with reason "Cross-wiki abuse"
- api.php?action=globalblock&target=192.0.2.1&expiry=indefinite&reason=Cross-wiki%20abuse&token=123ABC [open in sandbox]