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)
  • Questo modulo richiede i diritti di lettura.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0-or-later

Ottieni le differenze tra 2 pagine.

Un numero di revisione, il titolo di una pagina, o un ID di pagina deve essere indicato sia per il "da" che per lo "a".

Parametri:
fromtitle

Primo titolo da confrontare.

fromid

Primo ID di pagina da confrontare.

Tipo: intero
fromrev

Prima revisione da confrontare.

Tipo: intero
fromslots
(nessuna descrizione)
Valori (separati da | o alternativa): main
fromtext-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
fromsection-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
fromcontentformat-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
Uno dei seguenti valori: text/plain, text/x-wiki, text/javascript, application/json, text/css
fromcontentmodel-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
Uno dei seguenti valori: Scribunto, wikitext, javascript, json, css, text
frompst

Do a pre-save transform on fromtext.

Tipo: booleano (dettagli)
fromtext
Deprecato.

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

fromcontentformat
Deprecato.

Content serialization format of fromtext.

Uno dei seguenti valori: text/plain, text/x-wiki, text/javascript, application/json, text/css
fromcontentmodel
Deprecato.

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

Uno dei seguenti valori: Scribunto, wikitext, javascript, json, css, text
fromsection
Deprecato.

Only use the specified section of the specified 'from' content.

totitle

Primo titolo da confrontare.

toid

Secondo ID di pagina da confrontare.

Tipo: intero
torev

Seconda revisione da confrontare.

Tipo: intero
torelative

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

Uno dei seguenti valori: prev, next, cur
toslots
(nessuna descrizione)
Valori (separati da | o alternativa): main
totext-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
tosection-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
tocontentformat-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
Uno dei seguenti valori: text/plain, text/x-wiki, text/javascript, application/json, text/css
tocontentmodel-{slot}
(nessuna descrizione)
⧼api-help-param-templated⧽
Uno dei seguenti valori: Scribunto, wikitext, javascript, json, css, text
topst

Do a pre-save transform on totext.

Tipo: booleano (dettagli)
totext
Deprecato.

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

tocontentformat
Deprecato.

Content serialization format of totext.

Uno dei seguenti valori: text/plain, text/x-wiki, text/javascript, application/json, text/css
tocontentmodel
Deprecato.

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

Uno dei seguenti valori: Scribunto, wikitext, javascript, json, css, text
tosection
Deprecato.

Only use the specified section of the specified 'to' content.

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.
Valori (separati da | o alternativa): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
Predefinito: diff|ids|title
slots
(nessuna descrizione)
Valori (separati da | o alternativa): main
Per specificare tutti i valori, utilizza *.
Esempio:
Crea un diff tra revisione 1 e revisione 2.
api.php?action=compare&fromrev=1&torev=2 [apri in una sandbox]