Помощ за МедияУики API
Това е автоматично генерирана страница за документация на МедияУики API.
Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=cxsuggestionlist
(main | cxsuggestionlist)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: ContentTranslation
- License: GPL-2.0-or-later
Manage the suggestion lists. Add suggestions to lists and remove them.
Specific parameters:
Other general parameters are available.
- listname
Suggestion list name.
- This parameter is required.
- listaction
Action to be performed on the list.
- This parameter is required.
- Една от следните стойности: add, remove, view
- titles
Page titles.
- This parameter is required.
- За разделител на стойностите използвайте | или алтернативния разделител.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- from
Код на изходния език.
- This parameter is required.
- to
Код на целевия език.
- token
Маркер „csrf“, получен от action=query&meta=tokens
- This parameter is required.
Пример:
- Add a title to a list as a suggestion to translate from English (en) to Spanish (es). If the list does not exist already, a new list will be created.
- api.php?action=cxsuggestionlist&listname=List&listaction=add&titles=Title&from=en&to=es&token=123ABC [open in sandbox]