Page MenuHomePhabricator

Exclude specific pages from Template search
Open, Needs TriagePublic


Feature summary (what you would like to be able to do and where):

The "Add a template" feature in VisualEditor, in the search results includes subpages of templates that are not to be usedd in pages edited with VE. Common examples are templates only used in templates as components, and template subpages like /doc, /sandbox, /testcases, /styles.css. These should not be suggested by the search to be used on other pages.

Allow the wikis to configure which pages in the template namespace should not be included in the VE results.

Benefits (why should this be implemented?):

  • Reduced risk of users adding templates designed not to be added in articles (as well as other pages edited in VE)
  • The search result list would be more useful - it would not give useless suggestions

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The /doc subpages are already excluded (since T54448).

The /doc subpages are already excluded (since T54448).

Indeed, but there are more subpages to be excluded, so we need to provide a list.

MusikAnimal subscribed.

MediaWiki-extensions-TemplateWizard is not part of VisualEditor. Please create a separate task if this functionality is desired in TemplateWizard.

sgrabarczuk renamed this task from Exclude specific subpages from Template search to Exclude specific pages from Template search.Sep 14 2023, 10:56 AM
sgrabarczuk updated the task description. (Show Details)