From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status beta

Wikipedia Zero Logo.svg
ImplementationTemplate:Extension#type MyWiki, Special page, ContentHandler, Skin
DescriptionTemplate:Extension#description Provides features for mobile providers that provide free access to Wikipedia
Author(s)Template:Extension#username Yuri Astrakhan (yuriktalk)
Latest versionTemplate:Extension#version 1.1.1 (2017-04-15; 17 months ago (2017-04-15))
MediaWikiTemplate:Extension#mediawiki 1.31+
PHPTemplate:Extension#php 5.5.9+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
* $wgJsonConfigs
  • *wgZeroPortalImpersonateUser
Hooks usedTemplate:Extension#hook

Translate the ZeroPortal extension if it is available at translatewiki.net

Check usage and version matrix.


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


  • Download and place the file(s) in a directory called ZeroPortal in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ZeroPortal' );
  • Configure at your convenience
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

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";


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

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


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]