MediaWiki-API-Hilfe

Dies ist eine automatisch generierte MediaWiki-API-Dokumentationsseite.

Dokumentation und Beispiele: https://www.mediawiki.org/wiki/API/de

action=compare

(main | compare)
  • Dieses Modul erfordert Leserechte.
  • Quelle: MediaWiki
  • Lizenz: GPL-2.0+

Ruft den Unterschied zwischen zwei Seiten ab.

Du musst eine Versionsnummer, einen Seitentitel oder eine Seitennummer für „from“ als auch „to“ angeben.

Parameter:
fromtitle

Erster zu vergleichender Titel.

fromid

Erste zu vergleichende Seitennummer.

Typ: Ganzzahl
fromrev

Erste zu vergleichende Version.

Typ: Ganzzahl
fromtext

Use this text instead of the content of the revision specified by fromtitle, fromid or fromrev.

frompst

Do a pre-save transform on fromtext.

Typ: boolesch (Einzelheiten)
fromcontentformat

Content serialization format of fromtext.

Einer der folgenden Werte: application/json, text/x-wiki, text/javascript, text/css, text/plain
fromcontentmodel

Content model of fromtext. If not supplied, it will be guessed based on the other parameters.

Einer der folgenden Werte: flow-board, wikitext, javascript, json, css, text
totitle

Zweiter zu vergleichender Titel.

toid

Zweite zu vergleichende Seitennummer.

Typ: Ganzzahl
torev

Zweite zu vergleichende Version.

Typ: Ganzzahl
torelative

Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.

Einer der folgenden Werte: prev, next, cur
totext

Use this text instead of the content of the revision specified by totitle, toid or torev.

topst

Do a pre-save transform on totext.

Typ: boolesch (Einzelheiten)
tocontentformat

Content serialization format of totext.

Einer der folgenden Werte: application/json, text/x-wiki, text/javascript, text/css, text/plain
tocontentmodel

Content model of totext. If not supplied, it will be guessed based on the other parameters.

Einer der folgenden Werte: flow-board, wikitext, javascript, json, css, text
prop

Which pieces of information to get.

diff
The diff HTML.
diffsize
The size of the diff HTML, in bytes.
rel
The revision IDs of the revision previous to 'from' and after 'to', if any.
ids
The page and revision IDs of the 'from' and 'to' revisions.
title
Die Seitentitel der Versionen „Von“ und „Nach“.
user
The user name and ID of the 'from' and 'to' revisions.
comment
The comment on the 'from' and 'to' revisions.
parsedcomment
The parsed comment on the 'from' and 'to' revisions.
size
The size of the 'from' and 'to' revisions.
Werte (mit | trennen oder Alternative): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
Standard: diff|ids|title
Beispiel:
Unterschied zwischen Version 1 und 2 abrufen
api.php?action=compare&fromrev=1&torev=2 [in Spielwiese öffnen]