Page MenuHomePhabricator

Support translation of recursive templates
Open, MediumPublic


As part of template translation (T139332), users may find templates which content is based on other templates. Users should be able to translate those templates too.

Proposed solution

For recursive templates, the idea is to use the same model but provide some additional context (to view and move to the parent template) while focusing on the template being edited.

recursive-display.png (820×1 px, 222 KB)

recursive-editing.png (820×1 px, 122 KB)

  • The template is edited in the usual way (T143121).

recursive-editing-field.png (820×1 px, 125 KB)

  • When editing content that is rendered by a template, it will be displayed as a block (in the same way it is done when the user finds a template in a regular paragraph).

recursive-continuous.png (820×1 px, 104 KB)

  • When the user edits the template, the parent template will become collapsed and greyed-out.
  • The parent template keeps visible the field where the child template to keep the connection and preview the changes. If the content of the parent field is too long, we may want to limit the height showing only part of it.
  • Clicking on the parent template allows to go back to the previous state. where the user is editing the field containing the child template.
  • The transition should communicate the idea that the parent template got collapsed and a new card appears to edit the template in the active field.
  • If the source card has an equivalent template, the same process of expansion can be applied there.
  • The parent field is kept visible only for one level of depth. That is, only for the field where the template being edited is contained. Other levels will show only the template name as illustrated in a variant of the scenario below:

recursive-embedded-expand copy 7.png (820×1 px, 105 KB)

Event Timeline

Amire80 claimed this task.

Assigning to myself for review.

Love it, especially the extra sidebar card that shows information about a parameter (also in T145856, right?).

Just a comment, although it's probably obvious: The X for closing may change as a result of T150953.

Arrbee renamed this task from Design translation of recursive templates to Support translation of recursive templates.Dec 6 2016, 6:53 AM
Arrbee removed a project: Design.
Arrbee added a subscriber: Arrbee.

Design part completed in current sprint. Moving to backlog for later implementation.