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

(main | editslot)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: WSSlots
  • License: GPL-2.0-or-later

Create and edit slots on pages.

Specific parameters:
Other general parameters are available.
title

Title of the page to edit. Cannot be used together with pageid.

pageid

Page ID of the page to edit. Cannot be used together with title.

Type: integer
text

Page content to insert or append.

slot

The name of the slot to edit.

Default: main
append

Whether to append the text to the existing slot content

Type: boolean (details)
summary

Edit summary.

Default: (empty)
watchlist

Whether to add this page to your watchlist.

Default: (empty)
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.