MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:-{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-
action=markfortranslation
- 此模块需要读取权限。
- 此模块需要写入权限。
- 此模块只允许POST请求。
- 来源:翻译
- 许可协议: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.
- 通过|或替代物隔开各值。
- 值的最大值为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.
- 通过|或替代物隔开各值。
- 值的最大值为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.
- 通过|或替代物隔开各值。
- 值的最大值为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”令牌
- 这个参数是必需的。