MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=compare
(main | compare)
- This module requires read rights.
Get the difference between 2 pages.
A revision number, a page title, or a page ID for both "from" and "to" must be passed.
Параметры:
- fromtitle
First title to compare.
- fromid
First page ID to compare.
- fromrev
First revision to compare.
- totitle
Second title to compare.
- toid
Second page ID to compare.
- torev
Second revision to compare.
Пример:
- Create a diff between revision 1 and 2.
- api.php?action=compare&fromrev=1&torev=2