Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=globalblock
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul vyžaduje oprávnění k zápisu.
- Tento modul přijímá pouze požadavky POST.
- Zdroj: GlobalBlocking
- Licence: GPL-2.0-or-later
Globally block or unblock a user.
- 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
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)
- 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
Token typu „csrf“ získaný pomocí 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 [otevřít v pískovišti]