MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=markfortranslation
- 此模組需要讀取權限。
- 此模組需要寫入權限。
- 此模組僅接受 POST 請求。
- 來源:翻譯(Translate)
- 授權條款:GPL-2.0-or-later
Mark a page for translation
- title
The title of the page to act on. Either title or pageid must be set.
- pageid
The page ID of the page to act on. Either title or pageid must be set.
- 類型:整數
- revid
Assert that the current version of the page has this revision ID before continuing. If the page has been updated, exit with an error.
- 類型:整數
- translatetitle
If yes, allow translation of the display title. If no, do not allow translation. If absent, allow translation unless the page previously disallowed translation, or if the page is a template.
- 單值:no、yes
- prioritylanguages
A list of priority language codes. If this is absent, any previously set value will be retained.
- 將幾個值以 | 或 alternative 分隔。
- 值的最大數量為 1,000。
- forcepriority
This parameter is ignored unless the prioritylanguages parameter is present. If true, prevent translations to languages other than the priority languages.
- 類型:布林值(詳細資訊)
- priorityreason
This parameter is ignored unless the prioritylanguages parameter is present. A string giving the reason for priority translation.
- nofuzzyunits
A list of translation unit IDs which should not be fuzzied. This will be merged with the default list, in which any units with only tvar changes will not be fuzzied.
- 將幾個值以 | 或 alternative 分隔。
- 值的最大數量為 1,000。
- fuzzyunits
A list of translation unit IDs which should be fuzzied. This is only useful to override the default and allows fuzzying even units with only tvar changes.
- 將幾個值以 | 或 alternative 分隔。
- 值的最大數量為 1,000。
- forcelatestsyntaxversion
If false, do not use latest syntax version for this page. If absent, latest syntax version is used.
- 類型:布林值(詳細資訊)
- transclusion
If yes or absent, enable translation aware transclusion for this page. If no, disable transclusion.
- 單值:no、yes
- token
自 action=query&meta=tokens 接收的「csrf」權杖。
- 此為必填參數。