In speaking with community members about the potential image recommendations task, we learned about Wikidata infoboxes (see conversation here). Wikidata infoboxes are templates that pull information directly from Wikidata into a Wikipedia article, including an image from P18, if there is one.
Here is an example on Czech Wikipedia, in which the entire infobox is created just from this one line of Wikitext for "infobox person": {{Infobox - osoba}}
It is important to understand these infoboxes, because for articles that have them, we may not want to place suggested images into the wikitext of the article. Rather, we may want to add them as the P18 for the Wikidata item so that it is automatically included in the infobox. Or, for a first version of the feature, we may want to exclude any articles that have these infoboxes.
We want to know how many of the unillustrated articles with image matches have Wikidata infoboxes, so that we know how important it is to handle these infoboxes well in any feature we make.
We're not sure the best way to figure out what the set of templates are that are Wikidata infoboxes on each wiki. But if we are able to do that, below is what we want to calculate.
For a set of wikis, we want to calculate six things:
- Total number of articles in the wiki
- Unillustrated articles in the wiki
- Articles with match from any source (polished): this means the count of unillustrated articles that have a match from any of the three sources, after the "polishing" steps to remove local images, etc.
- Have Wikidata infobox: of the unillustrated articles with a match, the count of how many of them have a Wikidata infobox in them.
Here is a table with a sample row showing the output that we want:
wiki | Total number of articles | Unillustrated articles | Articles with match from any source (polished) | Have Wikidata infobox |
frwiki | 2,000,000 | 1,000,000 | 150,000 | 10,000 |
The list of wikis for which we want these numbers is:
- enwiki
- arwiki
- kowiki
- cswiki
- viwiki
- frwiki
- fawiki
- ptwiki
- ruwiki
- trwiki
- plwiki
- hewiki
- svwiki
- ukwiki
- huwiki
- hywiki
- srwiki
- euwiki
- arzwiki
- cebwiki
- dewiki
- bnwiki