As discussed in story time, this is causing a few issues and upon reflection also doesn't support the intended workflows related to clicking on a template name.
Requirements (desktop):
- When clicking on template name in sidebar, scroll template name into view in main window on the right.
- Nothing is in focus in the main window on the right.
- After clicking on a template name in a multi-part template transclusion, the up, down, and delete buttons in the toolbar are usable on the template that is in focus.
- Adding or clicking on wikitext element in a multi-part template transclusion, scrolls it into view and focuses in the input field in main window on the right (this is current behavior and should be maintained)
- When clicking on parameter name, scroll parameter into view and focus in input field in main window on the right (this is current behavior and should be maintained)
Relevant tickets and old patches:
- https://phabricator.wikimedia.org/T285323
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/715725
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/721808
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/723137
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/724020