You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Add Image"

From Wikitech-static
Jump to navigation Jump to search
imported>Gergő Tisza
(Created page with "This page contains information about the infrastructure used for the Add Image structured task project (phab:T285587). For project information, see mw:Growth/Personalized first day/Structured tasks/Add an image. == High-level summary == Add Image is the infrastructure behind a feature which recommends images to be added to articles which don't have any, and provides a streamlined editing interface for doing so. It consists of: * A dataset (currently a one-off)...")
 
imported>Gergő Tisza
(Infobox exclusion)
 
Line 6: Line 6:
* A <code>hasrecommendation:image</code> CirrusSearch keyword for searching for articles with recommendations (currently based on having loaded the dataset into the search index as a one-off).
* A <code>hasrecommendation:image</code> CirrusSearch keyword for searching for articles with recommendations (currently based on having loaded the dataset into the search index as a one-off).
* An image recommendation API (currently [https://image-suggestion-api.wmcloud.org/?doc image-suggestion-api.wmcloud.org]) that provides the information in the dataset for the queried page IDs.
* An image recommendation API (currently [https://image-suggestion-api.wmcloud.org/?doc image-suggestion-api.wmcloud.org]) that provides the information in the dataset for the queried page IDs.
* Integration with the structured task functionality of the [[Extension:GrowthExperiments|GrowthExperiments]] extension: a browsing interface on <code>Special:Homepage</code> and VisualEditor-based custom editing interface.
* Integration with the structured task functionality of the [[mw:Extension:GrowthExperiments|GrowthExperiments]] extension: a browsing interface on <code>Special:Homepage</code> and VisualEditor-based custom editing interface.
 
== Infobox exclusion ==
The GrowthExperiments extension adds a new <code>hastemplatecollection:<collection></code> CirrusSearch keyword for searching for articles containing any one of a list of templates (typically a list so long that <code>hastemplate:</code> cannot be used). This is used for excluding articles with infoboxes: it defines the <code>infobox</code> and <code>infoboxtest</code> collections based on the <code>GEInfoboxTemplates</code> and <code>GEInfoboxTemplatesTest</code> [[mw:Growth/Community_configuration|community configuration]] fields.
 
To update, you can set <code>GEInfoboxTemplatesTest</code> and test with the <code>hastemplatecollection:infoboxtest -hastemplatecollection:infobox</code> and <code>-hastemplatecollection:infoboxtest hastemplatecollection:infobox</code> searches what infobox-containing articles would be added to / removed from the filter.
 
The list of infoboxes is generated by the [https://gitlab.wikimedia.org/tgr/infobox-templates tgr/infobox-templates] script.


== See also ==
== See also ==
* [[Add Link]], the previous structured task project
* [[Add Link]], the previous structured task project

Latest revision as of 09:45, 3 December 2021

This page contains information about the infrastructure used for the Add Image structured task project (T285587). For project information, see mw:Growth/Personalized first day/Structured tasks/Add an image.

High-level summary

Add Image is the infrastructure behind a feature which recommends images to be added to articles which don't have any, and provides a streamlined editing interface for doing so. It consists of:

  • A dataset (currently a one-off) of articles with no images, and image recommendations based on images in other Wikimedia projects which are connected to the article in some way via Wikidata.
  • A hasrecommendation:image CirrusSearch keyword for searching for articles with recommendations (currently based on having loaded the dataset into the search index as a one-off).
  • An image recommendation API (currently image-suggestion-api.wmcloud.org) that provides the information in the dataset for the queried page IDs.
  • Integration with the structured task functionality of the GrowthExperiments extension: a browsing interface on Special:Homepage and VisualEditor-based custom editing interface.

Infobox exclusion

The GrowthExperiments extension adds a new hastemplatecollection:<collection> CirrusSearch keyword for searching for articles containing any one of a list of templates (typically a list so long that hastemplate: cannot be used). This is used for excluding articles with infoboxes: it defines the infobox and infoboxtest collections based on the GEInfoboxTemplates and GEInfoboxTemplatesTest community configuration fields.

To update, you can set GEInfoboxTemplatesTest and test with the hastemplatecollection:infoboxtest -hastemplatecollection:infobox and -hastemplatecollection:infoboxtest hastemplatecollection:infobox searches what infobox-containing articles would be added to / removed from the filter.

The list of infoboxes is generated by the tgr/infobox-templates script.

See also

  • Add Link, the previous structured task project