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)

Bi orrien arteko ezberdintasuna jaso.

A revision number, a page title, a page ID, text, or a relative reference for both "from" and "to" must be passed.

Parametroak:
fromtitle

Aldaratzeko lehenengo izenburua

fromid

Aldaratzeko lehenengo orri IDa

Mota: osokoa
fromrev

Lehenengo berrikusketa aldaratzeko

Mota: osokoa
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.

Mota: boolearra (xehetasunak)
fromcontentformat

Content serialization format of fromtext.

One of the following values: text/x-wiki, application/json, text/javascript, text/css, text/plain
fromcontentmodel

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

One of the following values: proofread-page, proofread-index, wikitext, javascript, json, css, text
totitle

Aldaratzeko bigarren izenburua.

toid

Aldaratzeko bigarren orri IDa.

Mota: osokoa
torev

Aldaratzeko bigarren berrikusketa.

Mota: osokoa
torelative

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

One of the following values: 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.

Mota: boolearra (xehetasunak)
tocontentformat

Content serialization format of totext.

One of the following values: text/x-wiki, application/json, text/javascript, text/css, text/plain
tocontentmodel

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

One of the following values: proofread-page, proofread-index, wikitext, javascript, json, css, text
prop

Hartu beharreko informazio zatiak.

diff
HTML diff-a
diffsize
HTML diff-aren tamainia, byte-tan
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
"nondik" eta "nora" berrikuspenen tamaina.
Values (separate with | or alternative): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
Lehenetsia: diff|ids|title
Adibidea:
1. eta 2. berrikusketen arteko "diff"-a sortu.
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]