The preview gadget no longer works in the new sitelinks UI. It shows a preview of the linked article.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdlrobson | T78430 [Epic] Getting Wikidata to render nicely on mobile web | |||
Open | None | T158181 Aim for workflow equivalence for MediaWiki on desktop and mobile web | |||
Open | None | T95878 [Story] Make Wikidata editable on mobile web | |||
Open | None | T95649 Create and document a stable framework for extending the Wikibase UI | |||
Stalled | None | T40968 Keyboard-navigability of the repo UI | |||
Open | None | T54136 [Epic] Redesign Item UI for Wikidata repo | |||
Invalid | None | T70903 [Story] Implement new SiteLink UI | |||
Resolved | Addshore | T86755 [Bug] Preview gadget no longer working in new sitelinks UI |
Event Timeline
@Lydia_Pintscher: This has been priority "Unbreak Now!" for a full month. As this is only considered for the next sprint, could someone set a more realistic priority value instead?
the community has made the gadget somewhat better now, with something next to the site link that I can click to get the preview.
but in my opinion the overlap between the gadget and sitelinks (and also the central notice banner) still isn't so nice.
I would also like a dedicated block (or be able to add it easily) above site links that maybe i could put custom gadget stuff, if I would like.
@Aklapper changed priority to high.
the community has made the gadget somewhat more usable, although issue remain and general issue of being able to have a place available in the UI for gadgets like this, like we had before.
@aude worked on this and has a new spiffy version. It still has a few issues. Can you publish it?
https://www.wikidata.org/wiki/User:Aude/preview.js and https://www.wikidata.org/wiki/User:Aude/preview.css is what I came up with so far. the toggle "show" / "hide" doesn't work correctly yet.
The gadget should be obsolete once T67117 is implemented, which I hope is in the near future.
i like hovercards, but imho don't want to need to hover for this. i just like a preview (to load by default) above site links. maybe what i want could be done differently than the gadget.
Ok, so your use case is a different one than mine. :-) I usually use the gadget only to get a short impression of the Wikipedia article.
By the way, I think we should wait for the UI redesign before implementing a new version of the gadget as lots of things are supposed to change especially in the sitelinks section afaik.
@Lydia_Pintscher thanks for pointing me to this bug.
To note that I have never been able to get the preview functioning for English Wikisource link. When the preview is clicked, I have an ellipsis and a read more link. I am presuming that the lack of display is some component of the template header that English Wikisource uses for its author and main namespaces.
If someone wishes to have a look, there is a suitable link at https://www.wikidata.org/wiki/Q1081777
@Billinghurst for some reason, the api returns "..." for the text extracts for enWS
I'm not entirely sure what the extracts api has trouble with here. the script/gadget just shows what the api provides.
@aude Special mediawiki!!! It is the similar issue we see with hovercards, and popups. I was hoping for some magic. Seems that I need to add a phabricator card. Would that be logged against the api?
@aude Thanks I will follow through in that regard.
Noting that today I have accessed WD preview.js through my Firefox on my laptop, and it doesn't show as as slide in, it shows as a weird section between the top data section and the lower links section. Noting that on this small screen laptop I don't get the column effect that I get with my large screen (both Firefox browser)
The preview gadget no longer works
What preview gadget?
Is this still an issue?
My preview gadget works
If this is still an issue please re open
I believe the gadget in question is https://www.wikidata.org/wiki/MediaWiki:Gadget-Preview.js. It might be that this edit by @matej_suchanek fixed it: https://www.wikidata.org/wiki/Special:Diff/524430620. @matej_suchanek, are you able to confirm this ticket is indeed resolved?
My change to the gadget was motivated by migrating from the deprecated config variable, but the problems could have been resolved as well. But the older comments on this task mention an alternative version of the gadget...