Talk:Page Previews

Jump to navigation Jump to search

About this board

Page Previews solves the core problem of users opening multiple tabs to gain an understanding of a word in the context of the subject they are reading. Whenever a reader hovers over a link to another article, a short summary of the subject, including its graphical image, is provided to them so they can decide whether they need to visit that subject more fully before continuing the current subject.

Please give us feedback on your experience using this feature so we can change and improve it. Each language is welcome in this discussion!

You can read more about the feature here.

Known Issues

2600:1008:B150:2F09:E0B5:7116:DB1C:3DF0 (talkcontribs)

I'm sure this has been mentioned before, but what about article titles which contain parentheses that actually are part of the name of the subject? The page preview seems to work with chemical elements that have parentheses in the title, but looking at the preview for Brandy (You're a Fine Girl) leaves out the remainder of the song title which is in parentheses.

Niedzielski (talkcontribs)

I think this has been discussed previously but I'm not sure what the current thoughts are on it. I've opened a ticket for discussion with the maintainers: T226323.

Reply to "Parentheses as part of title"

Can't see the Page Preview enable/disable button in Appareance

1
Silkwood (talkcontribs)

...simply does not exist the Reading Section in my Special:Preferences under Appearance tab.

This is my configuration:

Product Version
MediaWiki 1.32.0
PHP 7.2.17-0ubuntu0.18.04.1 (apache2handler)
MariaDB 10.1.38-MariaDB-0ubuntu0.18.04.1
ICU 60.2
Elasticsearch 5.6.16
Lua 5.1.5

These are my available/enabled Skins:

Skin Version License Description Authors
Metrolook 6.0 (930bc3c)13:56, 17 December 2016 GPL-2.0-or-later ENABLED immewnity, Paladox, Craig Davison and lagleki
MinervaNeue (e1c3fb6)15:00, 16 October 2018 GPL-2.0-or-later A responsive mobile first skin Readers Web Team, Bahodir Mansurov, Joaquin Hernandez, Jon Robson, Juliusz Gonera, Ryan Kaldari, Florian Schmidt and Sam Smith
MonoBook GPL-2.0-or-later The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background Gabriel Wicke, Isarra Yos and others
Timeless 0.8.1 GPL-2.0-or-later A timeless skin designed after the Winter prototype by Brandon Harris, and various styles by the Wikimedia Foundation Isarra Yos
Vector GPL-2.0-or-later Modern version of MonoBook with fresh look and many usability improvements Trevor Parscal, Roan Kattouw and others


What's wrong?

Thanks.

Reply to "Can't see the Page Preview enable/disable button in Appareance"

Similar browser extensions or add-ons to be inspired by

10
Quiddity (WMF) (talkcontribs)

I'm moving these here, from the project page where I originally listed them. Feel free to edit this to add any you find.

No endorsement of a particular extension is implied.

Browser extensions/addons that show mouseover popups within Wikipedia

Chrome
Firefox

Browser extensions/addons that show Wikipedia/Wiktionary content at any external site

Chrome
Firefox
Tbayer (WMF) (talkcontribs)
This post was hidden by Quiddity (WMF) (history)
Edwardj 123 (talkcontribs)

There are similar tools like this Page Previews feature, however that shouldn't stop our community from making ours. Having one official tool providing the best features in a simple way for everyone is a great idea which doesn't need installing browser extensions.

Listing the other extensions and add-ons is useful because we can review their design and features to improve our version.

Quiddity (WMF) (talkcontribs)

Yup, that's exactly why I started/researched the list. To show how popular the idea was (proving we ought to implement something) and to glean good ideas/designs from. :-)

EoRdE6 (talkcontribs)

Think this means this feature really needs to be globally rolled out to non-registered users then... Maybe leave as an option for registered users though because some prefer third party gadgets like Popups on english that give you way more details (for editors)

Edwardj 123 (talkcontribs)
To EoRdE6: I agree that this feature would good for everyone outside beta testing (it is a tool made by many others), however this shouldn't happen too soon because it needs to be finished (main problems fixed, features added). Also an option for users to disable it on their account could be a good idea but it would be better to make Page Previews/Hovercards have the popular features of other third party tools so users would use our official tool.
EoRdE6 (talkcontribs)

My issue with that is that editors still have very different requirements to readers therefore a reader centric tool will never function for editors... Third party tools allow editors to view page history and editors and block logs and protection and tons more all from the pop-up. It's messy and ugly but for editors it's useful. Readers have no use for that information so I would support giving them this basic version that is currently available...

Edwardj 123 (talkcontribs)
To EoRdE6: I see your point but we could have these editor only stats in Page Previews/Hovercards as opt-in features enabled on users' settings pages which could get some editors to use our tool instead of competitors' ones to keep ours supported and popular.
This post was hidden by Quiddity (WMF) (history)
Reply to "Similar browser extensions or add-ons to be inspired by"

Vandalized Page Previews - how to revert or edit?

2
143.85.163.18 (talkcontribs)

Hi,


I'm not sure where Page Previews pull their content from - I've found one this morning that differs wildly from the article it links. On the 2017 Honduras General Election page (link A, below), under the Supranational bodies header, when you hover over "Organization of American States", the preview text reads:

The Organization of American States, or the OAS or OEA, is a continental organization that serves to control American puppet states in the Americas. Headquartered in the United States capital Washington, D.C., the OAS's members are the 35 independent states of the Americas.

This is not an objective or factual statement, and differs wildly from the article that the OAS link leads to. The word "puppet" appears nowhere in the article source - which was where I went first in my attempt to find and revert the vandalism.

The previews feature is great, but I really hope that it is refined so that vandalism is easier to revert/address in the future.

A: https://en.wikipedia.org/wiki/2017_Honduran_general_election#Supranational_bodies B: https://en.wikipedia.org/wiki/Organization_of_American_States

Alsee (talkcontribs)

The article was vandalized 23:21, 1 June 2019. The vandalism was fixed within one minute.

For some reason the vandalized version remained as the active version in the page-preview cache for over 17 hours. I preformed a purge on the affected page which successfully cleared out the vandalism.

I'm not an expert on the caching, but one of the devs might want to look into why a few seconds of vandalism got stuck in the cache for so long. Is it possible the two edits were asynchronously processed in the wrong order? It would be bad if the software didn't spot something like that. A swift revert like this tends to be a significant red flag for blatant vandalism.

P.S. 143.85.163.1 thanks for the report. Any edit to Organization of American States would have fixed it. It can also be fixed by purging the page, adding ?action=purge at the end of the OAS address and loading it. Like this: https://en.wikipedia.org/wiki/Organization_of_American_States?action=purge

Reply to "Vandalized Page Previews - how to revert or edit?"

Suggestion: End Preview Text At End Of Sentence

3
182.57.86.135 (talkcontribs)

IMHO, a much-needed improvement to the Page Preview feature would be to have it end at a complete sentence instead of at an arbitrary word limit. Here's an example for the entry Uffizi :

The Uffizi Gallery is a prominent art museum located adjacent to the Piazza della Signoria in the Historic Centre of Florence in the region of Tuscany, Italy. One of the most important Italian museums and the most visited, it is also one of the largest and best known in the world and holds a collection of priceless


This preview text would be so much better if it included the full sentence, like so:

The Uffizi Gallery is a prominent art museum located adjacent to the Piazza della Signoria in the Historic Centre of Florence in the region of Tuscany, Italy. One of the most important Italian museums and the most visited, it is also one of the largest and best known in the world and holds a collection of priceless works, particularly from the period of the Italian Renaissance.


Could you please pass on this suggestion to the developers? Thanks.

Alsee (talkcontribs)

That sounds like a nice idea when you assume that you will be gaining the end of the sentence. However in reality there's going to be a maximum preview text length, which essentially changes this into a proposal to drop the first half of any sentence that would be incomplete. When viewed that way, displaying the partial sentence is almost surely preferable to not displaying it.

182.57.75.4 (talkcontribs)

Thanks for the reply. I agree with your assessment of the issue, and I had thought about it too. The reason I still believe it's an issue though is because I observed that a large part of the time, the incomplete sentence actually caused me to open the link in a new tab to see what the next word was, thus defeating the very purpose of the preview. If many other users have also experienced this same behaviour, it might be worth fixing it.

To explain better, considering the example provided in my original comment, the preview ends with "holds a collection of priceless", which immediately begs the question: priceless what? Whereas, using the rule of only including complete sentences but not crossing the word limit, the preview would reduce to:

The Uffizi Gallery is a prominent art museum located adjacent to the Piazza della Signoria in the Historic Centre of Florence in the region of Tuscany, Italy.

IMHO, this brief extract fully serves the function of a link preview, without the added "discomfort" of having a broken sentence. An ideal compromise might be to add a setting to "Include full sentences only" in the page preview preferences, but I'm guessing this might unnecessarily complicate matters.

Essentially, I suppose it boils down to seeing which option more users prefer: a shorter but complete paragraph, or a longer but broken one?

Reply to "Suggestion: End Preview Text At End Of Sentence"

A way of permanently disabling Page Preview?

4
2.68.15.75 (talkcontribs)

It keeps coming back and I don't want it!

Why not provide a way of permanently turning this annoyance off?

  1. I dont want to turn off Java. Why should I have to?
  2. It's got nothing to do with the cache or browser settings etc.. The damned thing just keeps resetting itself!
Quiddity (WMF) (talkcontribs)

If you disable it, the setting should be kept in your browser's local storage. (screenshot). If you're using a private window, or if you're clearing your browser's local storage (perhaps via a privacy-extension), it will reset. Otherwise it should be permanent.

If it's not working for you, and you don't match either of those circumstances, please tell us what browser & operating system (win/mac/etc) you are using, list any privacy-related browser-extensions you use, and if possible explain how you can reliably reproduce the bug (i.e. what steps you follow after which it spontaneously resets). Thanks.

CKoerner (WMF) (talkcontribs)

You're correct, you shouldn't have to turn off javascript. The state of the setting should be stored in your browser. Which wiki are you having issues with in particular? [edit: I didn't see the reply by @Quiddity (WMF)]

DannyS712 (talkcontribs)

This was just brought up again on w:en:Talk:Main page - how can a wiki change the default for non-logged-in users? (I'm not saying enwiki will, there has been no discussion of it, but how would it be done? I couldn't find anything in the site javascript that controls this) Thanks, --DannyS712 (talk) 22:12, 2 April 2019 (UTC)

Reply to "A way of permanently disabling Page Preview?"

Page Previews for the Wikipedia: namespace?

2
Colin M (talkcontribs)

I love this feature. Are there any plans to allow wikis to extend the functionality to articles outside the main namespace? I'm thinking particularly of the Wikipedia namespace on Wikipedia. When reading documents on Wikipedia policy, I often encounter "the core problem of users needing to open multiple tabs to gain an understanding of a word or concept within the context of the subject they are reading" - i.e. that issue that Page Previews so effectively solves in the main namespace. A preview would be especially helpful for the common case where a link uses a non-obvious shortcut, e.g. WP:WPEDIT because WP:GLC therefore WP:PSCI and WP:AWW...

CKoerner (WMF) (talkcontribs)

Hm, I think this would be up to the community to decide. If a project decided this was something they wanted the we could discuss the application.

Reply to "Page Previews for the Wikipedia: namespace?"

Preview image selected on Wikivoyage

2
Traveler100 (talkcontribs)

Can the logic of which image is selected be controlled? What is the current logic for preview image selection? In English Wikivoyage it is taking the first image given in a listing template. This may be the first point of interest in the See section but more often than not will be the airport or train station in the Get in section, or even the tourist information office in Understand section. Would be better if it used the first image on the page or the Wikidata image, or even cropped version of the page banned. To see example go to region pages for Ohrid or Frankfurt.

197.218.85.186 (talkcontribs)
Reply to "Preview image selected on Wikivoyage"
Hddty. (talkcontribs)

For example if you preview "United States", that triangle that point to the link make the flag/image not center. I think it should be removed

Reply to "Suggestion"

Page previews & SRF datatables format

2
Sochin67 (talkcontribs)

Dear all,

not sure whether this has been discussed already - but obviously page previews are not working in a result table of SRF datatables format.

Is this a known issue or am I doing something wrong?

MediaWiki: 1.31.0

PHP: 7.1.19-nmm1 (fpm-fcgi)

MySQL: 5.7.21-nmm1-log

Many thanks!

Loman87 (talkcontribs)

Hi, I am facing the same issue, do you have any updates?

Thanks,

Lorenzo

Reply to "Page previews & SRF datatables format"