**Background:**
As a part of making working with templates in Visual Editor easier, we will change the way in which parameters can be discovered, added and removed from a template invocation. We will also be making changes to how templates and wikitext can be added, removed, and editing to reduce confusion and implement a more consistent editing experience.
**Requirements**
[] Implement behind a feature flag with T272368 and T272481
[] The puzzle icon to the left of the template name is removed.
[] An OOUI ellipsis icon is added to the right
[] On click this opens a dropdown menu with three different options: moving the template up or down (currently done in the toolbar at the bottom with expand/collapse icons), and removing the template.
[] When removing a template with content, show the same warning message from {T272355}.
[] When there is only one template in the dialog, hide the moving up/down buttons.
[] When multiple templates are there, show both move up and move down buttons but if that specific template can only be moved up or down because of its current order, only enable the usable option/ disable the unusable option.
[] Template move up/down buttons move the template in the outline and content panes.
[] When a new template is inserted, all required and suggested parameters are automatically added to the main input field (current behavior).
[] Remove the trash icon next to the template name in the description/help area.
[] Template heading appears with <h4> style
Note: behavior for adding additional templates remains the same. They are added using the existing template button (puzzle piece) in the bottom left menu bar.
**Mocks**
//Mocks to be added//
Ellipsis icon: 20x20px and Base20, hover/click area is 44x40px. For size/layout match the VE dropdown menus (ex. Insert menu), from a OOUI word processor toolbar. Up and down arrows are OOUI icons: downTriangle, upTriangle.
Template name styling: H 5
Related tickets:
- Prototyping tickets: {T263414}