Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=block
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñав на ÑÑение.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñава на запиÑÑ.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ Ð¿ÑÐ¸Ð½Ð¸Ð¼Ð°ÐµÑ ÑолÑко Post-запÑоÑÑ.
- ÐÑÑоÑник: MediaWiki
- ÐиÑензиÑ: GPL-2.0+
ÐлокиÑовка ÑÑаÑÑника.
- user
ÐÐ¼Ñ ÑÑаÑÑника, IP-адÑÐµÑ Ð¸Ð»Ð¸ диапазон IP-адÑеÑов, коÑоÑÑе Ð²Ñ Ñ Ð¾ÑиÑе заблокиÑоваÑÑ.
- ÐÑÐ¾Ñ Ð¿Ð°ÑамеÑÑ ÑвлÑеÑÑÑ Ð¾Ð±ÑзаÑелÑнÑм.
- 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.
- Ðо ÑмолÑаниÑ: never
- reason
ÐÑиÑина блокиÑовки.
- Ðо ÑмолÑаниÑ: (пÑÑÑо)
- anononly
ÐлокиÑоваÑÑ ÑолÑко анонимнÑÑ Ð¿Ð¾Ð»ÑзоваÑелей (Ñ. е. запÑеÑиÑÑ Ð°Ð½Ð¾Ð½Ð¸Ð¼Ð½Ñе пÑавки Ð´Ð»Ñ ÑÑого IP-адÑеÑа).
- Тип: двоиÑнÑй (details)
- nocreate
ÐапÑеÑиÑÑ Ñоздание ÑÑÑÑнÑÑ Ð·Ð°Ð¿Ð¸Ñей.
- Тип: двоиÑнÑй (details)
- autoblock
Automatically block the last used IP address, and any subsequent IP addresses they try to login from.
- Тип: двоиÑнÑй (details)
- noemail
Prevent user from sending email through the wiki. (Requires the
blockemailright).- Тип: двоиÑнÑй (details)
- hidename
Hide the username from the block log. (Requires the
hideuserright).- Тип: двоиÑнÑй (details)
- allowusertalk
Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit).
- Тип: двоиÑнÑй (details)
- reblock
If the user is already blocked, overwrite the existing block.
- Тип: двоиÑнÑй (details)
- watchuser
СледиÑÑ Ð·Ð° ÑÑÑаниÑей полÑзоваÑÐµÐ»Ñ Ð¸Ð»Ð¸ IP-ÑÑаÑÑника и ÑÑÑаниÑей обÑÑждениÑ.
- Тип: двоиÑнÑй (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- ÐÑÐ¾Ñ Ð¿Ð°ÑамеÑÑ ÑвлÑеÑÑÑ Ð¾Ð±ÑзаÑелÑнÑм.
- Block IP address 192.0.2.5 for three days with reason First strike.
- api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC
- Block user Vandal indefinitely with reason Vandalism, and prevent new account creation and email sending.
- api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC