Page MenuHomePhabricator

Make ZID in title click-to-copy
Closed, ResolvedPublic

Description

Inspired by the IDs in the Function explorer, as seen here:

https://wikifunctions.beta.wmflabs.org/view/en/Z11697

change the font of the ZID in the title to the same font as for the ZIDs in the Function explorer, and also add the ability to click/tap to copy to it.

Check with @AAlhazwani-WMF first whether he approves this change.

Event Timeline

DVrandecic renamed this task from Make the ZID in title more useful to Make ZID in title click-to-copy.

Maybe enable right-click and mobile equivalent?

Short term it would be handy to copy just the text or to have it as an internal link or a full url, for example. Longer term, it might be an unpopulated function call or a label in a different language.

that could work! i would also like to explore how might we include the zid directly to about widget, rather than the mediawiki header.

that could work! i would also like to explore how might we include the zid directly to about widget, rather than the mediawiki header.

You might like to link that to T359999 and possibly T335583, up to you.

DVrandecic moved this task from To Triage to Backlog on the Abstract Wikipedia team board.

Change #1052291 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] [WIP] Header: make it able to copy zid on click

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

DSmit-WMF changed the task status from Open to In Progress.Jul 5 2024, 11:51 AM
DSmit-WMF claimed this task.

this looks great! thank you so much @DSmit-WMF! i've left a few minor notes on gerrit. here's a before

CleanShot 2024-07-08 at 15.25.02@2x.png (1,040×970 px, 110 KB)

and after screenshot of suggested changes.

CleanShot 2024-07-08 at 15.27.20@2x.png (1,040×970 px, 107 KB)

Change #1052291 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Header: make it able to copy zid on click

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