Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

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

action=sxsave

(main | sxsave)
  • 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: ContentTranslation
  • Licencja: GPL-2.0-or-later

Save the draft section translation and store the parallel corpora

Parametry:
sourcelanguage

The source language code.

Ten parametr jest wymagany.
targetlanguage

The target language code.

Ten parametr jest wymagany.
sourcetitle

The title of the source page.

Ten parametr jest wymagany.
targettitle

The title of the target page.

Ten parametr jest wymagany.
content

JSON-encoded section data. Each section is an object and has the following keys: content, sectionId, origin, validate

Ten parametr jest wymagany.
sourcerevision

ID wersji na stronie źródłowej.

Ten parametr jest wymagany.
Typ: liczba całkowita
sourcesectiontitle

The title of the source section.

Ten parametr jest wymagany.
targetsectiontitle

The title of the target section.

Ten parametr jest wymagany.
sectionid

The page section id.

Ten parametr jest wymagany.
sectionnumber

The position of section to be in the new revision of page.

Domyślnie: new
token

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

Ten parametr jest wymagany.