Page MenuHomePhabricator

VisualEditor: Display name of transclusions as a tool-tip when selected
Closed, ResolvedPublic

Description

At en.wp a user comments:
"The tooltip with a "puzzle" icon that appears when clicking on a template should contain the name of the template used. This would allow readers to be aware of which template they're about to change and would make the Templates interface [[self-documenting]], teaching by example the existence of the most common templates.

For example, the next screenshot would contain the word "Chembox" besides the puzzle icon:"

Screenshot: [[File:VisualEditor - Template editing 1.png]]


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=51827

Details

Reference
bz51824

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:59 AM
bzimport set Reference to bz51824.

What would this do when multiple templates (or other transclusions) are used in the scope of one transclusion block, like the succession boxes?

(In reply to comment #1)

What would this do when multiple templates (or other transclusions) are used
in
the scope of one transclusion block, like the succession boxes?

I can think of three logical options:

  1. The name of the first template and some indication (perhaps an asterisk?) that there are multiple translcusions in the block, e.g. "s-start *"
  1. a list of all the items in the transclusion, e.g. for [[Alan Williams]]:

s-start
s-par
s-bef
s-ttl
s-aft
s-end

Note that above, each template is listed only once, even for multiple occurrences, showing repeats is possible also.

  1. The names of the first and last templates with an indication (probably an ellipsis) that there are omitted elements, e.g. "s-start ... s-end" or

s-start
...
s-end

The horizontal format I'd guess might be easiest to program but would only work for templates with short names.

In either 1 or 3 there could be a way to click to see the templates that are omitted. However I'm not sure how useful that would be, so my suggestion would be to just leave passive provision for it to be added later without difficulty should it be requested.

Don't we have this now? What to do about this bug?

(In reply to Alex Monk from comment #3)

Don't we have this now? What to do about this bug?

Yes, fixed by Trevor's new context menus as of 6 months or so ago.