MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:-{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-
action=growthinvalidateimagerecommendation
(main | growthinvalidateimagerecommendation)
- 此模块是内部或不稳定的。它的操作可以更改而不另行通知。
- 此模块需要读取权限。
- 此模块只允许POST请求。
- 来源:GrowthExperiments
- 许可协议:GPL-3.0-or-later
作廢圖片推薦任務
Calling this API will:
- Reset the "hasrecommendation:image" weighted tag for the article, so the article is no longer returned in search results for image suggestions.
- Add the article to a short-lived cache, which the GrowthExperiments extension's ImageRecommendationFilter consults to decide if the article should be excluded from the user's suggested edits queue when accessed on Special:Homepage or via the action=query&list=growthtasks API.
- Generate and send an event to EventGate to the image-suggestion-feedback stream. This allows improvements in the image suggestion pipeline, as the code in the pipeline can account for user feedback when generating recommendations.
Further reading: mw:Growth/Personalized_first_day/Structured_tasks/Add_an_image
参数:
- title
條目標題圖片推薦任務用於
- 这个参数是必需的。
- 类型:页面标题
- 接受不存在的页面。
- filename
The unprefixed filename for the image recommendation, e.g. Foo.jpg
- 这个参数是必需的。
- token
从action=query&meta=tokens取回的“csrf”令牌
- 这个参数是必需的。