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=compare
(main | compare)
- Mô đun này cần quyền đọc.
- Source: MediaWiki
- License: GPL-2.0+
Get the difference between 2 pages.
A revision number, a page title, or a page ID for both "from" and "to" must be passed.
Các tham số:
- fromtitle
So sánh tiêu đề đầu tiên.
- fromid
So sánh ID trang đầu tiên.
- Type: integer
- fromrev
So sánh sửa đổi đầu tiên.
- Type: integer
- totitle
So sánh tiêu đề thứ hai.
- toid
So sánh ID tran thứ hai.
- Type: integer
- torev
So sánh sửa đổi thứ hai.
- Type: integer
Ví dụ:
- Tạo một so sánh giữa phiên bản 1 và 2.
- api.php?action=compare&fromrev=1&torev=2