Extension:ZeroPortal

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
ZeroPortal
Release status: beta
Wikipedia Zero Logo.svg
Implementation MyWiki, Special page, ContentHandler, Skin
Description Provides features for mobile providers that provide free access to Wikipedia
Author(s) Yuri Astrakhan (yuriktalk)
Latest version 1.1.1 (2017-04-15)
MediaWiki 1.32+
PHP 5.5.9+
Database changes No
License GNU General Public License 2.0 or later
Download
README
Deployments
Parameters
  • $wgJsonConfigs
  • *wgZeroPortalImpersonateUser
Hooks used
BeforePageDisplay
ScribuntoExternalLibraries
Translate the ZeroPortal extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The ZeroPortal extension provides management interface for Zero banners for the Wikipedia Zero program. This extension is a refactoring of ZRMA extension

Installation[edit]

  • Download and place the file(s) in a directory called ZeroPortal in your extensions/ folder.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'ZeroPortal' );, you need to use:

require_once "$IP/extensions/ZeroPortal/ZeroPortal.php";

Configuration[edit]

$wgJsonConfigs['JsonZeroConfig'] = array(
   'namespace' => NS_ZERO,
   'nsname' => 'Zero',
   'islocal' => true
);

See the README for more information on configuration and settings pertaining to carrier mockup.

Approach[edit]

The goal of this extension is to provide a secure way to interact with the Zero partners. There are several aspects this extension facilitates:

  • Partner configuration storage for ZeroBanners
  • General public information about the program
  • New partner signup
  • Existing partner configuration management
  • Administration by WMF staff
  • Usage graphs (analytics) for all groups of users

This extension will only be deployed on zero.wikimedia.org, a private, highly restricted wiki. Except for the administrators, all anonymous and logged-in users will have identical rights, allowing access only to the Special:ZeroPortal page. The special page will function as the only entry point into the portal. All content will be stored as wiki pages and templates, managed exclusively by the Zero partner engagement team. For example, there may be a wiki page "Anonymous", possibly with a number of other sub-templates and graphs, that contains information about the program and gives the starting point for the potential partners. There could also be a page "Signup", which shows partner's current position in the signup process, and a "Status" page for existing partners. We will also have a simple Lua script that picks the appropriate wiki page based on current user's signup state and displays it via the Special:ZeroPortal.

See also[edit]