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.
  • Font : MediaWiki
  • Licéncia : 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.

Paramètres :
fromtitle

Primièr títol de comparar.

fromid

ID de la primièra pagina de comparar.

Type: integer
fromrev

Primièra revision de comparar.

Type: integer
totitle

Segond títol de comparar.

toid

ID de la segonda pagina de comparar.

Type: integer
torev

Segonda revision de comparar.

Type: integer
Example:
Crear un diff entre lei revisions 1 e 2
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]