Ayuda de la API de MediaWiki
Esta es una página de documentación autogenerada de la API de MediaWiki.
Documentación y ejemplos: https://www.mediawiki.org/wiki/API
action=compare
- Este módulo requiere permisos de lectura.
- Fuente: MediaWiki
- Licencia: GPL-2.0+
Obtener la diferencia entre 2 páginas.
Se debe pasar un número de revisión, un título de página o una ID tanto desde "de" hasta "a".
- fromtitle
- Primer título para comparar 
- fromid
- ID de la primera página a comparar. 
- Tipo: entero
- fromrev
- Primera revisión para comparar. 
- Tipo: entero
- 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. 
- Tipo: booleano/lógico (detalles)
- fromcontentformat
- Content serialization format of fromtext. 
- Uno de los siguientes valores: 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. 
- Uno de los siguientes valores: wikitext, javascript, json, css, text
- totitle
- Segundo título para comparar. 
- toid
- Segunda identificador de página para comparar. 
- Tipo: entero
- torev
- Segunda revisión para comparar. 
- Tipo: entero
- torelative
- Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored. 
- Uno de los siguientes valores: 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. 
- Tipo: booleano/lógico (detalles)
- tocontentformat
- Content serialization format of totext. 
- Uno de los siguientes valores: 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. 
- Uno de los siguientes valores: 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.
 
- Valores (separados por | u otro separador): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
- Predeterminado: diff|ids|title
- Crear una diferencia entre las revisiones 1 y 2.
- api.php?action=compare&fromrev=1&torev=2 [abrir en la zona de pruebas]