MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=discussiontoolspreview

(main | discussiontoolspreview)
  • This module is internal or unstable, and you should not use it. Its operation may change without notice.
  • This module requires read rights.
  • Source: Discussion tools
  • License: MIT

Preview a message on a discussion page.

Specific parameters:
Other general parameters are available.
type

Type of message to preview

reply
Add a new comment as a reply to an existing comment.
topic
Add a new discussion section and the first comment in it.
This parameter is required.
One of the following values: reply, topic
page

The page to perform actions on.

This parameter is required.
wikitext

Content to preview, as wikitext.

This parameter is required.
sectiontitle

The title for a new section when using section=new.

useskin

Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.

One of the following values: apioutput, cologneblue, fallback, minerva, modern, monobook, timeless, vector, vector-2022
mobileformat

Return parse output in a format suitable for mobile devices.

Type: boolean (details)