mediawiki/extensions/Share - Gitiles

MediaWiki extension Share

Clone this repo:
  1. dc19531 build: Updating micromatch to 4.0.8 by libraryupgrader · 8 weeks ago master
  2. 17642f6 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0 by libraryupgrader · 10 weeks ago
  3. 16330af build: Updating eslint-config-wikimedia to 0.28.2 by libraryupgrader · 4 months ago
  4. 96840a6 build: Updating eslint-config-wikimedia to 0.28.0 by libraryupgrader · 4 months ago
  5. db260ea build: Updating grunt-banana-checker to 0.13.0 by libraryupgrader · 5 months ago

Share

Share inserts links or buttons on the sidebar of wiki pages which allows users to easily share wiki articles on a variety of platforms, including:

  • Email
  • Facebook
  • LinkedIn
  • Pinterest
  • Reddit
  • Telegram
  • Tumblr
  • Twitter
  • VK
  • Weibo
  • WhatsApp

For more information, see the extension's page at: www.mediawiki.org/wiki/Extension:Share.

Installation

As with most MediaWiki installations, just simply clone this repository into your extensions folder:

git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Share

Configuration

Share allows wiki administrators to configure the look of their sidebar share links/buttons and select what platforms you do or do not want to show up on your sidebar.

Share has two modes:

  1. Plain links mode (Default) - Sidebar share links appear as plain sidebar links, no different from sidebar links such as the ones going to the main page or to the recent changes page.
  2. Buttons mode ($wgShareUseButtons) - Sidebar share links appear as buttons users can click instead of average plain links.

By default, only Facebook and Twitter share links are enabled. These are governed by the following configuration variables:

$wgShareFacebook - Show "Share to Facebook" option in sidebar? $wgShareTwitter - Show "Share to Twitter" option in sidebar?

All other share options must be enabled through configuration changes. The following configuration variables all default to false and are boolean:

$wgShareEmail - Show "Share via email" option in sidebar?

$wgShareLinkedIn - Show "Share to LinkedIn" option in sidebar?

$wgSharePinterest - Show "Share to Pinterest" option in sidebar?

$wgShareReddit - Show "Share to Reddit" option in sidebar?

$wgShareTelegram - Show "Share to Telegram" option in sidebar?

$wgShareTumblr - Show "Share to Tumblr" option in sidebar?

$wgShareVK - Show "Share to VK" option in sidebar?

$wgShareWeibo - Show "Share to Weibo" option in sidebar?

$wgShareWhatsApp - Show "Share to WhatsApp" option in sidebar?