Summary
We will separate the user preference for Reference Previews and Page Previews, based on user feedback on this decision. Reference previews will be enabled by default for readers/anonymous users, and rolled out as an opt-out feature for logged in users (enabled by default).
Note, that the beta preference settings for Reference Previews must be preserved for the remaining wikis until the feature is deployed to all wikis.
Requirements
- Revert changes made in T265709: Merge Page Preview and Reference Preview preferences and restore Page Previews settings.
- Add a preference to the Reading preferences section of the Appearance user preferences tab for reference previews, underneath the Page Previews setting.
- (see table below) If the user has the NavPopups gadget enabled, which hides the feature, it does not change the user's setting but visibly greys out the preference and adds a message to disable the gadget to user the features. The same applies for if the user has RefTooltips enabled (or the wiki has RefTooltips enabled by default)
- The RefPreviews preference is editable in three different locations:
- Logged in users:
- Appearance preference page (wording below)
- The cog-wheel/pop-up for Ref Previews, implemented in this ticket Note: revert the changes made in T234205: Add cog wheel to the popup to disable ReferencePreviews to change the page previews pop up, and add a new pop up for the RefPreviews feature (to be done in this ticket: T277639: Settings pop up for RefPreviews and Page Previews)
- Anonymous users and non logged in users:
- Cog-wheel pop-up that saves the preference via a cookie (to be implemented in T277639: Settings pop up for RefPreviews and Page Previews)
Mocks
Use same text as page previews if no specific gadget is detected. See two example states below, not all are covered with mocks.
User settings (backend): Preference setting
Gadget | Reference preference setting | Message (shown below the standard preference text based on which gadget is enabled) |
Nav pop ups enabled | Greyed out, not clickable | You have the Navigation popups gadget enabled, so you won't see previews provided by this feature. Depending on your wiki, the gadget may a have slightly different name. If you continue to experience issues, please review your gadgets and user scripts, including global ones. |
RefTooltips enabled | Greyed out, not clickable | You have the Navigation popups gadget enabled, so you won't see previews provided by this feature. Depending on your wiki, the gadget may a have slightly different name. If you continue to experience issues, please review your gadgets and user scripts, including global ones. |
Both gadgets enabled | Greyed out, not clickable (current behaviour) | You have the Navigation popups and Reference Tooltips gadgets enabled, so you won't see previews provided by this feature. Depending on your wiki, the gadget may a have slightly different name. If you continue to experience issues, please review your gadgets and user scripts, including global ones. |
- For all of the above messages, the names of gadgets should be links which take you to the relevant section on the gadget preferences tab.