API:Stashedit
| This page is part of the MediaWiki Action API documentation. |
| Stashedit | ||
|---|---|---|
| Prepare an edit in shared cache. This module cannot be used as a generator. | ||
| Prefix | none | |
| Required rights | none | |
| Post only? | Yes | |
| Generated help | Current | |
| Version added |
| |
Prepare an edit in shared cache.
Parameters
title: Title of the page being edited.
section: Section number. 0 for the top section, new for a new section.
sectiontitle: The title for a new section.
text: Page content.
stashedtexthash: Page content hash from a prior stash to use instead.
summary: Change summary.
contentformat: Content serialization format used for the input text. Possible values: text/x-wiki (wikitext), text/javascript (javascript), text/css (css), text/plain (plain text), application/json (json)
contentmodel: Content model of the new content. Possible values: wikitext, javascript, css, text and json. This list may include additional values registered by extensions; on Wikimedia wikis, these include: JsonZeroConfig, Scribunto, JsonSchema
baserevid: Revision ID of the base revision.
token: A "csrf" token retrieved from action=query&meta=tokens
| The following documentation is the output of Special: |
action=stashedit
- This module is internal or unstable, and you should not use it. Its operation may change without notice.
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Prepare an edit in shared cache.
This is intended to be used via AJAX from the edit form to improve the performance of the page save.
- title
Title of the page being edited.
- This parameter is required.
- section
Section identifier. 0 for the top section, new for a new section.
- sectiontitle
The title for a new section.
- text
Page content.
- stashedtexthash
Page content hash from a prior stash to use instead.
- summary
Change summary.
- Default: (empty)
- contentmodel
Content model of the new content.
- This parameter is required.
- One of the following values: GadgetDefinition, Graph.JsonConfig, Json.JsonConfig, JsonSchema, MassMessageListContent, NewsletterContent, Scribunto, SecurePoll, css, flow-board, javascript, json, sanitized-css, text, translate-messagebundle, unknown, vue, wikitext, worklist
- contentformat
Content serialization format used for the input text.
- This parameter is required.
- One of the following values: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
- baserevid
Revision ID of the base revision.
- This parameter is required.
- Type: integer
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
[[Category:MediaWiki APITemplate:Translation]]