راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=cxsave

(main | cxsave)
  • This module is internal or unstable, and you should not use it. Its operation may change without notice.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: ContentTranslation
  • مجوز: GPL-2.0-or-later

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

پارامترها:
Other general parameters are available.
from

کد زبان مبدا

این پارامتر الزامی است.
to

کد زبان مقصد

این پارامتر الزامی است.
sourcetitle

عنوان صفحه مبدا

این پارامتر الزامی است.
title

عنوان صفحه برای انجام عمل روی آن

این پارامتر الزامی است.
content

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

این پارامتر الزامی است.
sourcerevision

نسخهٔ صفحهٔ مبدأ.

این پارامتر الزامی است.
نوع: عدد صحیح
progress

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

این پارامتر الزامی است.
cxversion

نسخهٔ ویرایشگر مورد استفاده برای ایجاد پیش‌نویس ترجمه.

نوع: عدد صحیح
The value must be between ۱ and ۲.
sourcecategories

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

نباید بیشتر از ۶۵٬۵۳۵ بایت باشد.
targetcategories

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

نباید بیشتر از ۶۵٬۵۳۵ بایت باشد.
token

یک بلیط «csrf» واکشی‌شده از action=query&meta=tokens

این پارامتر الزامی است.