Jump to content

Extension:ReaderExperiments

From mediawiki.org
MediaWiki extensions manual
ReaderExperiments
Release status: beta
Description Prototypes for Wikipedia reader-focused enhancements.
Author(s)
MediaWiki >= 1.47.0
  • $wgReaderExperimentsApiBaseUri
  • $wgReaderExperimentsImageBrowsingExternalWikis
Licence GNU General Public License 2.0 or later
Download
README
Translate the ReaderExperiments extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The ReaderExperiments extension is designed for prototyping and testing innovative features to enhance reader engagement and grow Wikipedia's audience. This experimental platform tests new ways to improve the Wikipedia reading experience and encourage deeper exploration of Wikipedia content, including features such as image browsing and other reader-focused enhancements.

Installation

[edit]
  • Download and move the extracted ReaderExperiments folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ReaderExperiments
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ReaderExperiments' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
$wgReaderExperimentsApiBaseUri
Url to API of MediaWiki instance to use for external data (e.g. when using MobileFrontendContentProvider, in which case this should be equal to $wgMFMwApiContentProviderBaseUri), or leave empty to use local API.
$wgReaderExperimentsImageBrowsingExternalWikis
Map of external wiki domains from which to show other images, to the message key to use when describing the project name.


Enabling experiments

[edit]

To enable an experiment, find the experiment name by searching the codebase (usually stored as constant variables.

With the experiment name, you can append a mpo query string parameter to a page to see the experiment enabled. Make sure you are using the correct skin and mobile/desktop.e.g. https://en.wikipedia.org/wiki/Paris?mpo=mobile-page-previews:treatment

User rights

[edit]

See also

[edit]