Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
prop=moderationpreload (mp)
- Этот модуль требует прав на чтение.
- Источник: Moderation
- Лицензия: GPL-3.0+
If the current user made an edit which is currently awaiting moderation, retrieve the text of this revision.
Параметры:
- mpmode
Expected format, either wikitext or parsed HTML.
- Одно из следующих значений: wikitext, parsed
- По умолчанию: wikitext
- mptitle
Title of the page. Cannot be used together with mppageid.
- mppageid
Page ID of the page. Cannot be used together with mptitle.
- Тип: integer
- 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 [open in sandbox]
- Get HTML of the pending edit by this user in the page Dog.
- api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [open in sandbox]
- 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 [open in sandbox]