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=createapage

(main | createapage)

CreateAPage API module: get createplate HTML and handle switching to regular wikitext editing mode on Special:CreatePage

Specific parameters:
Other general parameters are available.
template

Name of the createplate to load when the what param is set to multieditparse

This parameter is required.
what

Name of the action to take, either multieditparse or switchtoadvancedediting

This parameter is required.
One of the following values: multieditparse, switchtoadvancedediting
Examples:
Get the HTML (not wikitext) of MediaWiki:Createplate-Actor for Special:CreatePage use only!
api.php?action=createapage&what=multieditparse&template=Actor [open in sandbox]
Store the user-supplied original, unmodified (by CreateAPage) wikitext into the PHP $_SESSION['article_content'] superglobal for further use
api.php?action=createapage&what=switchtoadvancedediting&template=Actor [open in sandbox]