When translating templates in Content Translation (T139332), users are provided a tool to adapt the different parameters. Users may find some difficulties due to the differences of templates across wikis (including their unavailability).
Although initial research (T146419) showed that some users were a bit overwhelmed by the complexity of the template concept concept. Especially in the case of in-line templates that look like regular text, the parameter editing can be perceived as additional complexity. These users mentioned that they would just add the information as plain text in the translation.
Providing an option to adapt templates as regular text can provide a way forward for these cases. In general we should aim for content to be structured in templates since that guarantees consistency across pages, so it may be good to provide this option in such context (e.g., clarifying that the structure and formatting will be lost and providing access to additional information about the purpose of templates).
We can support two approaches to convert a template into text:
A convert to text option in the template card
Providing an option in the template card that allows users to turn the template into plain text:
- The option has a separator and a clarifying sub message ("The template structure will be lost") since it has side-effects.
- Clicking on such option will replace the template with the text content.
- In order to allow a way to undo, we need to make sure that clicking on the source template adds it to the translation if it is not there.
A step before deleting with the keyboard
When deleting a template, it can get converted to plain text first. As the user presses "supr" or "backspace" keys we can introduce the conversion to text as an intermediate step. The first deletion action will select the template, another deletion will convert it into text (selecting the whole text), one more deletion press will remove the whole selected text (if the user did not decided to move the cursor).
We may want to experiment with this approach to check if it feels natural to remove the structure before the content.