MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=block
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Stankañ un implijer
- user
User to block.
- Seurt: implijer, dre forzh pehini eus anv implijer, IP, lijorenn IP ha(g) Anaouder an implijer (da sk. "#12345")
- userid
- Deprecated.
Specify user=#ID instead.
- Type: anterin
- 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.
- Dre ziouer : never
- reason
Abeg evit stankañ.
- Default: (empty)
- anononly
Block anonymous users only (i.e. disable anonymous edits for this IP address).
- Type: boolean (details)
- nocreate
Mirout a grouiñ kontoù.
- Type: boolean (details)
- autoblock
Automatically block the last used IP address, and any subsequent IP addresses they try to login from.
- Type: boolean (details)
- noemail
Prevent user from sending email through the wiki. (Requires the
blockemail
right).- Type: boolean (details)
- hidename
Kuzhat a ra anv implijer e marilh ar stankadennoù. (Rekis eo kaout ar gwir
hideuser
right).- Type: boolean (details)
- allowusertalk
Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit).
- Type: boolean (details)
- reblock
Mard eo stanket an implijer c'hoazh, frikañ ar stankadenn zo.
- Type: boolean (details)
- watchuser
Evezhiañ pajennoù implijer ha kaozeal an den pe e chomlec'h IP.
- Type: boolean (details)
- tags
Kemmañ an tikedennoù da lakaat e talvoud en enmont marilh ar stankadennoù.
- Values (separate with | or alternative):
- partial
Block user from specific pages or namespaces rather than the entire site.
- Type: boolean (details)
- pagerestrictions
List of titles to block the user from editing. Only applies when partial is set to true.
- Seurt : titl pajenn
- Separate values with | or alternative.
- An niver brasañ a dalvoudoù a zo 10.
- Pajennoù a zo anezhi hepken.
- namespacerestrictions
List of namespace IDs to block the user from editing. Only applies when partial is set to true.
- Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- To specify all values, use *.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Rekis eo an arventenn-mañ.
- Stankañ ar chomlec'h IP 192.0.2.5 tri devezh-pad gant un abeg.
- api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC [open in sandbox]
- Stankañ an implijer Vandal da viken gant un abeg, ha mirout a grouiñ kontoù nevez pe kas posteloù.
- api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC [open in sandbox]