Extension:ZeroPortal

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

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; 4 months ago (2017-04-15))
MediaWikiTemplate:Extension#mediawiki 1.29+
PHPTemplate:Extension#php 5.5.9+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README
Deployments
ParametersTemplate:Extension#parameters
  • $wgJsonConfigs
  • *wgZeroPortalImpersonateUser
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay
ScribuntoExternalLibrariesManual:Hooks/ScribuntoExternalLibraries

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

Check usage and version matrix.

IssuesPhabricator

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.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/ZeroPortal/ZeroPortal.php";
    
  • Configure at your convenience
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

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]