MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=move
(main | move)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
Move a page.
Параметры:
- from
Title of the page to rename. Cannot be used together with fromid.
- fromid
Page ID of the page to rename. Cannot be used together with from.
- to
Title to rename the page to.
- Этот параметр является обязательным.
- reason
Reason for the rename.
- По умолчанию: (пусто)
- movetalk
Rename the talk page, if it exists.
- movesubpages
Rename subpages, if applicable.
- noredirect
Don't create a redirect.
- watch
- Устаревший.
Add the page and the redirect to the current user's watchlist.
- unwatch
- Устаревший.
Remove the page and the redirect from the current user's watchlist.
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- One value: watch, unwatch, preferences, nochange
- По умолчанию: preferences
- ignorewarnings
Ignore any warnings.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Этот параметр является обязательным.
Пример:
- Move Badtitle to Goodtitle without leaving a redirect.
- api.php?action=move&from=Badtitle&to=Goodtitle&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect=