Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=move
(main | move)
- Mô đun này cần quyền đọc.
- Mô đun này cần quyền ghi.
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: MediaWiki
- License: GPL-2.0+
Di chuyển trang.
Các tham số:
- 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.
- Type: integer
- to
Title to rename the page to.
- Tham số này là bắt buộc.
- reason
Lý do đổi tên.
- Mặc định: (trống)
- movetalk
Rename the talk page, if it exists.
- Type: boolean (details)
- movesubpages
Rename subpages, if applicable.
- Type: boolean (details)
- noredirect
Không tạo trang đổi hướng.
- Type: boolean (details)
- watch
- Bị phản đối.
Add the page and the redirect to the current user's watchlist.
- Type: boolean (details)
- unwatch
- Bị phản đối.
Remove the page and the redirect from the current user's watchlist.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Một giá trị: watch, unwatch, preferences, nochange
- Mặc định: preferences
- ignorewarnings
Bỏ qua tất cả các cảnh báo.
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- Tham số này là bắt buộc.
Ví dụ:
- Move Badtitle to Goodtitle without leaving a redirect.
- api.php?action=move&from=Badtitle&to=Goodtitle&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect=