MediaWiki-API-Hilfe
Dies ist eine automatisch generierte MediaWiki-API-Dokumentationsseite.
Dokumentation und Beispiele: https://www.mediawiki.org/wiki/API/de
action=compare
- Dieses Modul erfordert Leserechte.
- Quelle: MediaWiki
- Lizenz: GPL-2.0-or-later
Ruft den Unterschied zwischen zwei Seiten ab.
Du musst eine Versionsnummer, einen Seitentitel oder eine Seitennummer für „from“ als auch „to“ angeben.
- 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. 
- fromsection
- Only use the specified section of the specified 'from' content. 
- frompst
- Do a pre-save transform on fromtext. 
- Typ: boolesch (Einzelheiten)
- fromcontentformat
- Content serialization format of fromtext. 
- Einer der folgenden Werte: text/x-wiki, text/javascript, application/json, 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: 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. 
- tosection
- Only use the specified section of the specified 'to' content. 
- topst
- Do a pre-save transform on totext. 
- Typ: boolesch (Einzelheiten)
- tocontentformat
- Content serialization format of totext. 
- Einer der folgenden Werte: text/x-wiki, text/javascript, application/json, 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: wikitext, javascript, json, css, text
- prop
- Which pieces of information to get. - diff
- Das Unterschieds-HTML.
- diffsize
- Die Größe des Unterschieds-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
- Unterschied zwischen Version 1 und 2 abrufen
- api.php?action=compare&fromrev=1&torev=2 [in Spielwiese öffnen]