Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=cxsave

(main | cxsave)
  • Modul ini dalaman atau tidak stabil. Operasinya boleh berubah tanpa amaran.
  • Modul ini memerlukan hak membaca.
  • Modul ini memerlukan hak menulis.
  • Modul ini menerima permohonan POST sahaja.
  • Source: ContentTranslation
  • License: GPL-2.0-or-later

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

Parameter:
Other general parameters are available.
from

Kod bahasa punca.

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

Semakan laman sumber.

This parameter is required.
Type: integer
progress

Maklumat tentang penyelesaian (pengembangan) terjemahan. JSON dengan kunci-kunci any, human, mt dan mtSectionsCount. Nilai kunci-kunci ialah peratusan.

This parameter is required.
cxversion

Version of the editor used to create the draft translation.

Type: integer
The value must be between 1 and 2.
sourcecategories

JSON encoded array of source categories to be saved with draft translation.

Cannot be longer than 65,535 bytes.
targetcategories

JSON encoded array of target categories to be saved with draft translation.

Cannot be longer than 65,535 bytes.
token

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

This parameter is required.