From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png

Release status: experimental

Implementation Skin
Description Extension to put geo located link to the Wikimedia Shop on the side bar for testing purposes.
Author(s) James Alexander (Jalexandertalk)
Latest version 0.1.0 (7/19/2012)
License GPL v2 +
  • $wgWikimediaShopEnableLink
  • $wgWikimediaShopEnableLink
  • $wgWikimediaShopShowLinkCountries
Hooks used


Translate the WikimediaShopLink extension if possible

Check usage and version matrix; code metrics
Bugs: list open list all report

Adds a geolocated link in the sidebar to the Wikimedia Shop but could also be used for other links. It currently looks for a specific spot in the sidebar and inserts the link there if the users country matches one of the targets regions.

Installation[edit | edit source]

  • Download and extract the files in a directory called WikimediaShopLink in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/WikimediaShopLink/WikimediaShopLink.php" );
// Enable the link
$wgWikimediaShopEnableLink = true;
// Country codes
$wgWikimediaShopShowLinkCountries = array(
	// ...
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit | edit source]

(Default: false) Enables or disables the extension. Make sure to explicitly enable before you want to use.
(Default: //wikimedia.myshopify.org) The link target for inserted link
(Default: empty) Array of countries to be targeted (using 2 letter uppercase ISO codes).