MediaWiki API hulp

Dit is een automatisch aangemaakte documentatiepagina over de API van MediaWiki.

Documentatie en voorbeelden: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=moderationpreload (mp)

(main | query | moderationpreload)
  • Voor deze module zijn leesrechten nodig.
  • Bron: Moderation
  • Licentie: GPL-3.0+

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

Specifieke parameters:
Er zijn nog andere algemene parameters beschikbaar.
mpmode

Expected format, either wikitext or parsed HTML.

Een van de volgende waarden: parsed, wikitext
Standaard: wikitext
mptitle

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

mppageid

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

Type: geheel getal
mpsection

Only retrieve the content of this section number.

Voorbeelden:
Get wikitext of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat [in de sandbox openen]
Get HTML of the pending edit by this user in the page Dog.
api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [in de sandbox openen]
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 [in de sandbox openen]