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/Special:MyLanguage/API:Main_page

prop=moderationpreload (mp)

(main | query | moderationpreload)
  • Este módulo requiere permisos de lectura.
  • Fuente: Moderation
  • Licencia: GPL-3.0+

If the current user made an edit which is currently awaiting moderation, retrieve the text of this revision.

Parámetros:
mpmode

Expected format, either wikitext or parsed HTML.

Uno de los siguientes valores: parsed, wikitext
Predeterminado: wikitext
mptitle

Title of the page. Cannot be used together with mppageid.

mppageid

Page ID of the page. Cannot be used together with mptitle.

Tipo: entero
mpsection

Only retrieve the content of this section number.

Ejemplos:
Get wikitext of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat [abrir en la zona de pruebas]
Get HTML of the pending edit by this user in the page Dog.
api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [abrir en la zona de pruebas]
Get wikitext of section #2 (third section) of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat&mpsection=2 [abrir en la zona de pruebas]