Page MenuHomePhabricator

TemplateData output should generate an [edit] link that launches the TemplateData GUI
Closed, ResolvedPublic

Description

Result: (The new link's location is circled. The link label has since been updated to "Edit template data".)

image.png (540×984 px, 100 KB)

Original task - feature proposal:
The current workflow to get the TemplateData GUI can be quite convoluted:

  1. Edit the template page
  2. Observe the warning that the data is probably transcluded from Template:Foo/doc
  3. Click the link to open Template:Foo/doc
  4. Click edit
  5. Click "Manage TemplateData"

or

  1. Find the TemplateData section on the page
  2. Click the section edit link
  3. Wait for the editor to load, then press "Manage TemplateData" button that appears late

A better workflow would be to add a small edit button to the output of TempateData that opens the editor on the correct page (e.g. /doc) and launches the TemplateData GUI immediately. This would be similar to the extra edit links wikis sometimes add to template invocations to edit the template itself.

One could also add a "TemplateData" button to the edit tabs.

Event Timeline

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

[mediawiki/extensions/TemplateData@master] Add a "Manage TemplateData" button to the TemplateData output

https://gerrit.wikimedia.org/r/828534

matmarex renamed this task from TemplateData output should generate an [edit] link that launches the TempateData GUI to TemplateData output should generate an [edit] link that launches the TemplateData GUI.Aug 31 2022, 6:53 PM
matmarex subscribed.

I think this is very cool and worth announcing.

Change 828534 merged by jenkins-bot:

[mediawiki/extensions/TemplateData@master] Add an "Edit template data" button to the TemplateData output

https://gerrit.wikimedia.org/r/828534

Added to next week's Tech News with the explanation

"There will be a new link to directly Manage TemplateData from the output that is shown on Template pages."

It will be frozen for translation in ~24 hours, so please edit directly if tweaks are needed. (P.s. Suggested wording is always appreciated, when tagging a task with User-notice !)

Currently it reuses message for previous button text, but it'd nice to use different capitalization (lower case first letter) for a bracketed link, similar to other bracketed links that appear in e.g. recent changes or history pages.

EAkinloose subscribed.

✅ TemplateData output generates an [Edit template data] link that launches the TemplateData GUI

Screenshot 2022-11-23 at 18.15.36.png (1×3 px, 672 KB)

Screenshot 2022-11-23 at 18.16.40.png (1×3 px, 745 KB)

ppelberg claimed this task.

Test wiki on Patch demo by ESanders (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/9cf456b71a/w/