Довідка API MediaWiki

Це автоматично генерована сторінка документації API MediaWiki.

Документація та приклади: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=moderationpreload (mp)

(main | query | moderationpreload)
  • Цей модуль вимагає прав на читання.
  • Джерело: Moderation
  • Ліцензія: GPL-3.0+

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

Конкретні параметри:
Other general parameters are available.
mpmode

Expected format, either wikitext or parsed HTML.

Одне з наступних значень: parsed, wikitext
Стандартно: wikitext
mptitle

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

mppageid

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

Тип: ціле число
mpsection

Only retrieve the content of this section number.

Приклади:
Get wikitext of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat [відкрити в пісочниці]
Get HTML of the pending edit by this user in the page Dog.
api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [відкрити в пісочниці]
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 [відкрити в пісочниці]