Nápověda k MediaWiki API

Toto je automaticky generovaná dokumentační stránka k MediaWiki API.

Dokumentace a příklady: https://www.mediawiki.org/wiki/API

prop=moderationpreload (mp)

(main | query | moderationpreload)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Zdroj: Moderation
  • Licence: GPL-3.0+

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

Parametry:
mpmode

Expected format, either wikitext or parsed HTML.

Jedna z následujících hodnot: wikitext, parsed
Implicitní hodnota: wikitext
mptitle

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

mppageid

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

Typ: celé číslo
mpsection

Only retrieve the content of this section number.

Příklady:
Get wikitext of the pending edit by this user in the page Cat.
api.php?action=query&prop=moderationpreload&mptitle=Cat [otevřít v pískovišti]
Get HTML of the pending edit by this user in the page Dog.
api.php?action=query&prop=moderationpreload&mptitle=Dog&mpmode=parsed [otevřít v pískovišti]
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 [otevřít v pískovišti]