MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=compare

(main | compare)
  • Ez a modul olvasási jogot igényel.
  • Forrás: MediaWiki
  • Licenc: GPL-2.0+

Két lap közötti különbség kiszámítása.

Mindkét laphoz kötelező megadni egy lapváltozat-azonosítót, címet vagy lapazonosítót.

Paraméterek:
fromtitle

Az első összehasonlítandó lap címe.

fromid

Az első összehasonlítandó lap lapazonosítója.

Típus: egész
fromrev

Az első összehasonlítandó lapváltozat azonosítója.

Típus: egész
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.

Típus: logikai (részletek)
fromcontentformat

Content serialization format of fromtext.

A következő értékek egyike: 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.

A következő értékek egyike: GadgetDefinition, wikitext, javascript, json, css, text
totitle

A második összehasonlítandó lap címe.

toid

A második összehasonlítandó lap lapazonosítója.

Típus: egész
torev

A második összehasonlítandó lapváltozat azonosítója.

Típus: egész
torelative

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

A következő értékek egyike: 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.

Típus: logikai (részletek)
tocontentformat

Content serialization format of totext.

A következő értékek egyike: 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.

A következő értékek egyike: GadgetDefinition, 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
The page titles of the 'from' and 'to' revisions.
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.
Értékek (elválasztó: | vagy más): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
Alapértelmezett: diff|ids|title
Example:
Az 1-es és 2-es lapváltozat összehasonlítása.
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]