Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_pag

action=stashedit

(main | stashedit)
  • Ten moduł jest wewnętrzny lub niestabilny. Jego działanie może się zmienić bez uprzedzenia.
  • Ten moduł wymaga praw odczytu.
  • Ten moduł wymaga praw zapisu.
  • Ten moduł akceptuje tylko żądania POST.
  • Źródło: MediaWiki
  • Licencja: 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.

Parametry:
title

Tytuł edytowanej strony.

This parameter is required.
section

Section number. 0 for the top section, new for a new section.

sectiontitle

Tytuł nowej sekcji.

text

Zawartość strony.

stashedtexthash

Page content hash from a prior stash to use instead.

summary

Opis zmian.

Domyślnie: (puste)
contentmodel

Content model of the new content.

This parameter is required.
Jedna z następujących wartości: css, javascript, json, text, wikitext
contentformat

Content serialization format used for the input text.

This parameter is required.
Jedna z następujących wartości: application/json, text/css, text/javascript, text/plain, text/x-wiki
baserevid

Revision ID of the base revision.

This parameter is required.
Type: integer
token

Token „csrf” pobrany z action=query&meta=tokens

This parameter is required.