Community Wishlist Survey 2023/Editing/Nested templates in Visual Editor
Appearance
Nested templates in Visual Editor
- Problem: In Visual Editor, a template within another template cannot be edited properly. Not only does the user get wikitext (which should not happen in Visual Editor), but it is also confined to a tiny field in the template editor window. Whenever the main part of a template has to be inside another template for technical reasons, this makes the template editor and TemplateData for that template useless.
- Proposed solution: Nested templates should be detected and every single template should be editable using the template editor of Visual Editor.
- Who would benefit: Users of Visual Editor.
- More comments: I remember first discussing this at Wikimania 2017. Unfortunately, there seems to have been little progress on the matter.
- Phabricator tickets: phab:T52355 (at least part of it)
- Proposer: XanonymusX (talk) 22:34, 23 January 2023 (UTC)
Discussion
- Thanks for the wish, we would need to inquire how feasible this is for us as a team, I doubt it can be done in a quarter, but we could still move it to larger suggestions and track interest in terms of votes. I see lots of interest already in the phab ticket linked. Thoughts, User:ESanders (WMF)? KSiebert (WMF) (talk) 18:06, 25 January 2023 (UTC)
- It certainly is very complex, and to be done properly would require changes to Parsoid to have the template parameters supplied as HTML. There may hackier approaches that sidestep this (I haven't thought about this problem in details for a while) but it would still be reasonably complex. ESanders (WMF) (talk) 18:33, 25 January 2023 (UTC)
- It's easier said than done, as the hardest thing is to figure out how to do this. One possible way is to use VS editor on template parameters. Thingofme (talk) 03:55, 28 January 2023 (UTC)
- Yeah, there have always been lots of ideas around this topic, but no idea has ever been seriously pursued, as far as I can tell. It is a bit frustrating that at this point in time (almost five years after the conversation I had at Wikimania 2017), on large pages like de:Elvis Presley/Diskografie Visual Editor is still basically useless and causes more harm than good. I was also repeatedly asking the Technical Wishes team at WMDE to work on this while they were improving the template editor, but it seemed too complex to them too.
- Personally I clearly prefer nested templates to templates with unbalanced wikitext, but at this point the latter seems to be much better for the editing experience. I hope the solution won’t be to change all nested templates to multi-part templates.
- Without having too much insight into the technical basis here, the most obvious solution to me seems to imitate the behaviour of the reference editor in VE. If I choose for adding/editing a reference manually in VE, I get a full wikitext editor with the option of adding a template, which will then open the template editor in a new window. If this works for references, why not for templates? And there can of course be a reasonable limit to nesting (even a maximum of 2 would already make things much better). I am happy to work closely with the team on this, but unfortunately I cannot do the development myself. XanonymusX (talk) 13:40, 29 January 2023 (UTC)
Voting
- Support. I think the inability to use nested templates in VE is the main reason for me to constantly switch back to source editing. I would love to be able to add books to a bibliography for instance (which contains {{cite book}} in {{reflist}}). A very basic citation action that is nearly impossible to do. Femke (talk) 19:14, 10 February 2023 (UTC)
- Support — DaxServer (t · m · c) 20:07, 10 February 2023 (UTC)
- Support SeGiba (talk) 20:58, 10 February 2023 (UTC)
- Support Rtfroot (talk) 21:42, 10 February 2023 (UTC)
- Support, though the visual editor isn't compatible with a lot of features, tbf. SHB2000 (talk | contribs) 22:34, 10 February 2023 (UTC)
- Support Magnoliasouth (talk) 22:48, 10 February 2023 (UTC)
- Support Jensbest (talk) 23:33, 10 February 2023 (UTC)
- Support - Templates are one of the main reasons why I need to switch to source editor. Really breaks the workflow. Carpimaps (talk) 00:31, 11 February 2023 (UTC)
- Support Skimel (talk) 00:42, 11 February 2023 (UTC)
- Support --NGC 54 (talk|contribs) 00:45, 11 February 2023 (UTC)
- Support Yeeno (talk) 01:50, 11 February 2023 (UTC)
- Support Tgr (talk) 03:15, 11 February 2023 (UTC)
- Support * Pppery * it has begun 03:45, 11 February 2023 (UTC)
- Support Kekavigi (talk) 08:26, 11 February 2023 (UTC)
- Support Exilexi (talk) 09:39, 11 February 2023 (UTC)
- Support Zapyon (talk) 10:04, 11 February 2023 (UTC)
- Support VisualEditor has a couple other issues that require switching back to Wikitext, which is bothersome, so I support its further development. KingisNitro (talk) 12:15, 11 February 2023 (UTC)
- Support Nw520 (talk) 12:19, 11 February 2023 (UTC)
- Support Lion-hearted85 (talk) 12:52, 11 February 2023 (UTC)
- Support HereAndSometimesThere (talk) 14:15, 11 February 2023 (UTC)
- Support Nehaoua (talk) 16:09, 11 February 2023 (UTC)
- Support The inability to use VE in template parameters discourage people to use VE -- it's not usable in some kinds of editing. Thingofme (talk) 16:10, 11 February 2023 (UTC)
- Support Thomas Kinz (talk) 20:07, 11 February 2023 (UTC)
- Support HvW (talk) 20:42, 11 February 2023 (UTC)
- Support Toadspike (talk) 22:26, 11 February 2023 (UTC)
- Support daSupremo 22:59, 11 February 2023 (UTC)
- Support Ahkei (talk) 01:33, 12 February 2023 (UTC)
- Support PigeonChickenFish (talk) 02:36, 12 February 2023 (UTC)
- Support Gohan 03:54, 12 February 2023 (UTC)
- Support Betseg (talk) 04:04, 12 February 2023 (UTC)
- Support Robespierreshead (talk) 07:13, 12 February 2023 (UTC)
- Support HLFan (talk) 07:16, 12 February 2023 (UTC)
- Support Izno (talk) 07:25, 13 February 2023 (UTC)
- Support Stryn (talk) 12:35, 13 February 2023 (UTC)
- Support but not all parameters of all templates – some templates may have parameter that looks like wikitext but isn’t (e.g. SPARQL). I think this could be stored in TemplateData (e.g. load VE mode only for parameters that have
content
type). Tacsipacsi (talk) 14:09, 13 February 2023 (UTC) - Support Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:01, 13 February 2023 (UTC)
- Support Wargo (talk) 22:58, 13 February 2023 (UTC)
- Support +1 YjM (talk) 00:31, 14 February 2023 (UTC)
- Support Zwd626 (talk) 04:19, 14 February 2023 (UTC)
- Support ZandDev (talk) 13:19, 14 February 2023 (UTC)
- Support Barkeep49 (talk) 21:31, 14 February 2023 (UTC)
- Support cyrfaw (talk) 12:20, 15 February 2023 (UTC)
- Support ~Cybularny Speak? 14:06, 15 February 2023 (UTC)
- Support Matma Rex (talk) 22:03, 15 February 2023 (UTC)
- Support Sadads (talk) 01:12, 16 February 2023 (UTC)
- Support Aishik Rehman (talk) 07:26, 16 February 2023 (UTC)
- Support JFremd (talk) 15:56, 16 February 2023 (UTC)
- Support Yes, this often is a problem to me Alien333 (talk) 17:47, 16 February 2023 (UTC)
- Support Phatom87 (talk) 16:21, 17 February 2023 (UTC)
- Support MASUM THE GREAT (talk) 16:28, 17 February 2023 (UTC)
- Support Kurmanbek 💬 17:00, 17 February 2023 (UTC)
- Support Mitch199811 (talk) 18:22, 17 February 2023 (UTC)
- Support —CX Zoom (A/अ/অ) (let's talk|contribs) 19:51, 17 February 2023 (UTC)
- Support Vulcan❯❯❯Sphere! 15:32, 18 February 2023 (UTC)
- Support AllArtAfterAll (talk) 16:00, 18 February 2023 (UTC)
- Support HouseBlaster (talk) 17:58, 18 February 2023 (UTC)
- Support Snowmanonahoe (talk) 19:23, 18 February 2023 (UTC)
- Support Albinfo (talk) 21:13, 18 February 2023 (UTC)
- Support Jklamo (talk) 12:01, 19 February 2023 (UTC)
- Support Unexpectedlydian (talk) 14:58, 19 February 2023 (UTC)
- Support Carlos-X (talk) 18:35, 19 February 2023 (UTC)
- Support Lupe (talk) 18:35, 19 February 2023 (UTC)
- Support Ezlev (talk) 18:44, 19 February 2023 (UTC)
- Support Elutz (talk) 19:30, 19 February 2023 (UTC)
- Support Hans5958 (talk) 02:44, 20 February 2023 (UTC)
- Support Nashona (talk) 14:54, 20 February 2023 (UTC)
- Support — Omegatron (talk) 16:55, 20 February 2023 (UTC)
- Support T. Wirbitzki (talk) 18:14, 20 February 2023 (UTC)
- Support Lectrician1 (talk) 23:13, 20 February 2023 (UTC)
- Support ! —מקף⁻ණ (Hyphen) 23:25, 20 February 2023 (UTC)
- Support Amir E. Aharoni (talk) 11:47, 22 February 2023 (UTC)
- Support Chatul (talk) 12:20, 22 February 2023 (UTC)
- Support LilyKitty (talk) 12:43, 22 February 2023 (UTC)
- Support Althair (talk) 04:04, 23 February 2023 (UTC)
- Support. —— Eric Liu(Talk) 01:32, 24 February 2023 (UTC)
- Support Matěj Suchánek (talk) 17:05, 24 February 2023 (UTC)
- Support The few times I had used the VisualEditor I was wondering how one could do this... Well, it looks like this is currently not possible! ~~~~
User:1234qwer1234qwer4 (talk) 17:44, 24 February 2023 (UTC)