Aide de l’API MediaWiki

Ceci est une page d’aide de l’API de MediaWiki générée automatiquement.

Documentation et exemples : https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=moderationpreload (mp)

(main | query | moderationpreload)
  • Ce module nécessite des droits de lecture.
  • Source : Moderation
  • Licence : GPL-3.0+

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

Paramètres :
mpmode

Expected format, either wikitext or parsed HTML.

Une des valeurs suivantes : parsed, wikitext
Par défaut : 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: entier
mpsection

Only retrieve the content of this section number.

Exemples :
Get wikitext of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat [ouvrir dans le bac à sable]
Get HTML of the pending edit by this user in the page Dog.
api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [ouvrir dans le bac à sable]
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 [ouvrir dans le bac à sable]