Page MenuHomePhabricator

Add an Image: Infobox-templates gives incorrect suggestions
Closed, ResolvedPublic

Description

The docs to deploy Add an Image mention tgr/infobox-templates should be used to prepopulate the GEInfoboxTemplates field in community configuration.

When working on T340585: Add an image: Add missing GEInfoboxTemplates to several Wikimedia wikis, I noticed two issues with the script:

  • it strips namespace prefix (instead of Template:Infobox, it yields Infobox), which is not compatible with the expectations set for GEInfoboxTemplates.
  • its Wikidata query searches for infobox templates on ie. all French projects, rather than just Wikipedias.

This task tracks fixing those two issues. It would probably make sense to incorporate the script as a maintenace script in GrowthExperiments rather than as a standalone Python app in the future.

Details

TitleReferenceAuthorSource BranchDest Branch
Improve returned suggestionsrepos/growth/infobox-templates!2urbanecmremove-strip-nsmain
Customize query in GitLab

Event Timeline

Somewhat useful for scaling Add image to other wikis (although moving the script to GrowthExperiments would help more). Filling/pushing more or less to properly track the work I did already anyway for T340585.