The preview gadget no longer works in the new sitelinks UI. It shows a preview of the linked article.
|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|
|Open||None||T70903 [Story] Implement new SiteLink UI|
|Resolved||• Addshore||T86755 [Bug] Preview gadget no longer working in new sitelinks UI|
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.
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.
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 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)
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...