**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, T272481 and T272487
[] An OOUI ellipsis icon is added to the right
[] On click this opens a dropdown menu with four different items: moving the template up or down (currently done in the toolbar at the bottom with expand/collapse icons), removing the template, link to template documentation.
[] When removing a template with content, show the same warning message from {T272355}.
[] When there is only one template in the dialog, hide the move 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.
[] Remove the trash icon next to the template name in the description/help area.
[] Remove the toolbar from the bottom.
[] Template heading appears with <h4> style (bold)
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.
Note: difference from test instance - keeping the puzzle icon as-is in the sidebar
**Mocks**
{F34085887}
//Specs 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}