Page MenuHomePhabricator

Focus first parameter when creating a new template in the Visual Editor
Open, Needs TriagePublicFeature


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

I would like the first parameter input of a template I'm adding to be focused when I open it in the Visual Editor (assuming the template has suggested/required parameters – e.g. "Cite book" on English Wikipedia)

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

The template dialog currently focuses the template link after a template is searched-for and selected which means that I always have to hit tab before I add the first parameter.

image.png (627×1 px, 93 KB)

This is extremely annoying. I would like for the first parameter to be selected so that I don't have to click tab.

Benefits (why should this be implemented?):

Faster editing

Event Timeline

Change 874002 had a related patch set uploaded (by Lectrician1; author: Lectrician1):

[mediawiki/extensions/VisualEditor@master] Focus the first parameter in the template dialog

Change 878094 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] [POC] Focus first parameter after adding new template to transclusion