MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子: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.

具体参数:
其他通用参数可用。
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 [在沙盒中打开]