Skip to content

Improve returned suggestions

Urbanecm requested to merge urbanecm/infobox-templates:remove-strip-ns into main

When working on T340585, two issues were noticed with this script:

  • it strips namespace prefix (instead of Template:Infobox, it yields Infobox), which is not compatible with the expectations set for GEInfoboxTemplates (since f138cc9 / 47e0304, GEInfoboxTemplates no longer presumes NS_TEMPLATE as the default namespace).
  • its Wikidata query searches for infobox templates on ie. all French projects, rather than just the French Wikipedia.

See https://www.mediawiki.org/wiki/Topic:Xksrdpg0w7sf6166 and attached task for details.

Bug: T340629

Edited by Urbanecm

Merge request reports