VisualEditor: Provide some kind of template suggestion in the transclusion editor

Assigned To
Sunpriat, Trizek-WMF, Aklapper and 12 others
"Like" token, awarded by Elitre."Love" token, awarded by Trizek-WMF."Love" token, awarded by Ltrlg."Like" token, awarded by Gerardduenas.

Adam Cuerden says, "I believe the VE team intends to have a some one click solutions in the near future, including adding templates of your choice to a bar? Although I'd hope there'd also be a few automatic lists you could choose to pull up - cleanup templates, etc."

So, it would be really comfy for users if the template editor, beyond being able to let them select what they need by typing the name, asked "Which kind of template do you want to add?" and provided lists of the most used/popular ones, divided per set (cleanup templates, citation templates and so on).
Or just a way to store one's most used choices.

Version: unspecified
Severity: enhancement
See Also:

bzimport set Reference to bz53590.
Elitre created this task.Via LegacyAug 30 2013, 2:33 PM
Thryduulf added a comment.Via ConduitAug 30 2013, 10:00 PM

Created attachment 13203
A very quick mockup for quick access buttons

One idea I've had is to use some of the empty vertical space on the right of the dialog for some quick access buttons. See attachment for a 2 minute mockup of how this might look. The labels I've used in the mockup are not necessarily the right ones, they're just ones I quickly thought of.

Either the buttons could be set to allow one-click access to certain templates, or to be drop-down lists of similar related ones. Possibly the two could be combined - click to get the top item in the list, or click and hold for a moment to open the drop down for short list (almost certainly no more than 10, probably less than that) of similar ones.

Selecting any of these would have the same effect as typing the name into the search field, selecting it, and clicking to add the template.

A second idea would be to change the transclusion editor button from a simple button to a combined button/drop down as I described above. Here you could only have a single list but it could be longer. Selecting a template from this list would load the transclusion editor with that template preloaded into it.

Some way of customising either/both lists (beyond recently used) would be useful too.


Jdforrester-WMF added a comment.Via ConduitAug 31 2013, 12:23 AM

The main priority is a (very limited) suggestion of quick-inserting templates when in a reference, which is bug 50458.

This is certainly a possibility, but would probably want to be context-specific (so it only suggests clean-up templates when your cursors is at the top of the page; only suggests stubs when at the bottom; etc.).

Jdforrester-WMF added a comment.Via ConduitAug 20 2014, 9:49 PM
  • Bug 69787 has been marked as a duplicate of this bug. ***
Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 4:27 PM
Amire80 added a comment.EditedVia WebNov 24 2014, 9:54 PM

The more I use VE, the more I miss such a feature.

The challenge with it is that it's badly project-specific, so community editors will need an easy way to customize this list, but something like this already done for citation templates, so it should be possible for other templates as well.

This is one issue for which it's REALLY worth poking around Wikimedia projects in different languages to ask them what would they like in such a feature, and what current features they currently have that are similar to this. For example, the Hebrew Wikipedia has the Templateslist script ( ), which adds a dropdown with common templates to the Vector editing toolbar, and users there complain that they don't want to use VE because VE doesn't have such a list.

I'm not rushing - this requires proper research, understanding and design, but it should be somewhere in the roadmap.

Ltrlg added a subscriber: Ltrlg.Via WebApr 21 2015, 8:37 PM
Gerardduenas added a subscriber: Gerardduenas.Via WebApr 23 2015, 1:38 PM

It would really be appreciated in wikipedia's sister projects to have a costumizable common templates dropdown as there is with the citation tool.

Gerardduenas awarded a token.Via WebApr 23 2015, 1:38 PM
Ltrlg awarded a token.Via WebApr 23 2015, 10:00 PM
Ricordisamoa added a subscriber: Ricordisamoa.Via WebJun 16 2015, 11:54 AM
Krenair added a subscriber: Krenair.Via WebJun 16 2015, 5:22 PM
ResMar added a subscriber: ResMar.Via WebJun 19 2015, 2:47 AM

I suggest that per Amire80, cross-wiki templates be made a blocker bug for this feature.

It's just too much widely duplicated work to do otherwise.

Amire80 added a comment.Via WebJun 19 2015, 10:13 AM

Mmm... I don't know if it's a blocker, but it is quite desirable.

Elitre added a comment.Via WebSep 25 2015, 9:00 AM

@James_F, is this something a gadget could easily achieve?

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptVia HeraldSep 25 2015, 9:00 AM
Trizek-WMF awarded a token.Via WebSep 25 2015, 9:01 AM
Trizek-WMF added a subscriber: Trizek-WMF.
Jdforrester-WMF added a comment.Via WebSep 25 2015, 9:18 AM

@James_F, is this something a gadget could easily achieve?

It could, but I'd rather avoid people adding new things to the toolbar ad hoc. We really need a design for this that can scale.

Jdforrester-WMF added a project: Design.Via WebSep 25 2015, 9:18 AM
Jdforrester-WMF set Security to None.
Elitre awarded a token.Via WebSep 25 2015, 9:19 AM
Sunpriat added a subscriber: Sunpriat.Via WebSep 27 2015, 11:45 AM

Add Comment