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.

値 (次の値のいずれか1つ): 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 [サンドボックスで開く]