MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=cxsuggestionlist
(main | cxsuggestionlist)
- มอดูลนี้ต้องการสิทธิในการอ่าน
- มอดูลนี้ต้องการสิทธิในการเขียน
- มอดูลนี้ยอมรับเฉพาะคำขอ POST เท่านั้น
- แหล่งที่มา: ContentTranslation
- สัญญาอนุญาต: 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
ชื่อหน้า
- 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
A "csrf" token retrieved from 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 [เปิดในกระบะทราย]