MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=cxsave

(main | cxsave)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: ContentTranslation
  • License: GPL-2.0+

This module allows to save draft translations by section to save bandwidth and to collect parallel corpora.

Parameters:
from

The source language code.

This parameter is required.
to

The target language code.

This parameter is required.
sourcetitle

The title of the source page.

This parameter is required.
title

The title of the page to perform actions on.

This parameter is required.
content

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

This parameter is required.
sourcerevision

The revision of the source page.

This parameter is required.
Type: integer
progress

Information about translation completion (progress). JSON with the keys any, human, mt and mtSectionsCount. The keys' values are percentages.

This parameter is required.
token

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

This parameter is required.
Vojna Enciklopedija - Glavni i odgovorni urednik Branislav Kapetanović