Page MenuHomePhabricator

Provide a link to the template page from the template context item
Closed, ResolvedPublic


Originally reported by User:बडा काजी on

When you select a template in Visual Editor it currently has a option of editing the template. I want another button that takes me directly to the template.

image.png (110×410 px, 9 KB)

Event Timeline

@geraki replied:

Such a link already exists on the top of the form with two different wordings:

  • The "Foo" template doesn't yet have a description, but there might be some information on the template's page.
  • Templates are user-generated and may lack complete descriptions. There might be additional information on this template's page.

By comparison, the link context does provide a link to the target page as well as the edit button:

image.png (195×420 px, 34 KB)

One could argue that a VE user is unlikely to want to visit the template description page, as we pull in template metadata to the template editor anyway, so adding a link here would distract from the likely action: edit.

That said experience editors use VE as well and this could be useful to them.

Change 890472 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Template context: Link to source templates in "Generated from:" list

Change 890472 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Template context: Link to source templates in "Generated from:" list


image.png (129×454 px, 18 KB)

nb: The link opens the template page in a new window

EAkinloose subscribed.

✅ Edit button as well as link to the template is displayed

Screenshot 2023-04-06 at 17.53.17.png (976×1 px, 194 KB)

Clicking the link takes me to the template as expected

EAkinloose claimed this task.