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 [在沙盒中開啟]