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.
  • 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.

Parameters:
fromtitle

العنوان الأول للمقارنة.

fromid

رقم الصفحة الأول للمقارنة.

Type: integer
fromrev

أول مراجعة للمقارنة.

Type: integer
totitle

العنوان الثاني للمقارنة.

toid

رقم الصفحة الثاني للمقارنة.

Type: integer
torev

المراجعة الثانية للمقارنة.

Type: integer
Examples:
Create a diff between revision 1 and 2.
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]