Page MenuHomePhabricator

VisualEditor's Insert Template feature, when autocompleting template names, should skip "doc" subpages
Closed, DuplicatePublic

Description

If Template:Foo is documented by placing TemplateData into Template:Foo/doc, and you use VisualEditor's Insert/Template feature, then both Template:Foo and Template:Foo/doc show up in the autocompletion list (with the same TemplateData descriptions too). The "doc" subpage should not show up in the autocompletion list, because nobody's ever going to transclude that subpage into an article.

This change would be easy if you implement T125222 first, which would designate a specific subpage name (like "doc") for TemplateData using a config variable.

Event Timeline

maiden_taiwan raised the priority of this task from to Needs Triage.
maiden_taiwan updated the task description. (Show Details)
maiden_taiwan added a project: VisualEditor.
maiden_taiwan added a subscriber: maiden_taiwan.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 2 2016, 2:43 PM