Community Wishlist Survey 2021/Archive/Editing templates recursively

From Meta, a Wikimedia project coordination wiki

Editing templates recursively

NoN Outside the scope of Community Tech

  • Problem: Editing using the VisualEditor cannot edit templates that exist inside of other templates, and editors frequently have to switch modes (or preview the edit) from the source mode to check that the nested template works properly.
  • Who would benefit: Editors using the VisualEditor
  • Proposed solution: Like the current implementation of editing templates, there would be a popup, but much larger. Alternatively, it would be a tab much like the tabs above the editing area, but distinguished in its own horizontal row. In these context menus, there would exist an editable template that would look identical to the final result. Users could view and edit formatted text, as well as adding templates, which would appear as finalized, too. In these menus, if the editor wishes to edit a second template inside another, a popup or tab would appear with the new editing workspace. Such templates that would benefit from this include Episode list, any date formatting template, navigation templates, etc.
  • More comments:
  • Phabricator tickets: phab:T52355
  • Proposer: SWinxy (talk) 04:35, 17 November 2020 (UTC)[reply]

Discussion

  • Editing templates within templates I think is phab:T52355? I think it might be too much scope for the CommTech team to take on. --Izno (talk) 19:53, 17 November 2020 (UTC)[reply]
    That bug is for visual editing of the template. The 'complex transclusion' mode already exists, and lets you change the template contents within the visual editing mode. Click on the "outside" template, and open the template editor. Then click "Show options" in the bottom corner. When you "Apply changes" (to the "outside" template), you'll see the result. Whatamidoing (WMF) (talk) 06:30, 18 November 2020 (UTC)[reply]
I think I get what you mean, but that appears to only append a template onto another one, rather than edit a template from inside another template. SWinxy (talk) 03:57, 24 November 2020 (UTC)[reply]
You can make full changes to the items already in it. Whatamidoing (WMF) (talk) 21:05, 4 January 2021 (UTC)[reply]