Extension:YaShareForWiki

What can this extension do?
Allow inclusion of social networking buttons. The extension based at Yandex Share API.

Installation

 * Download the latest version and extract it into the extensions folder of your MediaWiki installation.
 * Enable the extension by adding this line to your :

Configuration parameters
There are various options for extension, you can put them into your LocalSettings.php file line. However, extension should work even out-of box.

Integrating the share box in the sidebar
If not set, no share box is integrated (this is the default). Integrating a share box into the sidebar only works with skins based upon SkinTemplate, that is, Modern and Monobook, but not CologneBlue.
 * $wgYaShare4WikiSidebar: integrating the share box in the sidebar. Default is.

Style type of the block which show a pop-up menu

 * $wgYaShare4WikiCntStType: style type of the block which show a pop-up menu. Default is.

You can use following style types:


 * button: (configuration constant );
 * link: (configuration constant );
 * icon with no text: (configuration constant );
 * witout a pop-up menu: (configuration constant ).


 * $wgYaShare4WikiBarStType: style type of the block at the sidebar which show a pop-up menu. Default is.

You can use following style types:


 * button: (configuration constant );
 * link: (configuration constant );
 * icon with no text: (configuration constant ).

The interface language
You can use following languages:
 * $wgYaShare4WikiI10n: the interface language (since v0.3.1). Default is:.
 * az: Azerbaijan;
 * be: Belarus;
 * en: English;
 * hy: Armenian;
 * ka: Georgian;
 * kk: Kazakh;
 * ro: Romanian;
 * ru: Russian;
 * tr: Turkish;
 * tt: Tatar;
 * uk: Ukrainian.

If the setting is not specified, it is determined automatically based on the website domain zone, with the Russian language by default.

A theme selection
You can use following themes:
 * $wgYaShare4WikiCntTheme: theme for the ordinary block (since v0.3.1). Default is.
 * $wgYaShare4WikiBarTheme: theme for the block at the sidebar (since v0.3.1). Default is.


 * block with the dark colors: (configuration constant ). Note: this theme support a limited number of services, details on the documentation page Yandex Share documentation(only in Russian);
 * buttons with counters: (configuration constant ). Note: this theme support a limited number of services and don't support pop-up windows, details on the documentation page Yandex Share documentation(only in Russian);
 * block at the ordinary form: (configuration constant ).

A border around the block

 * $wgYaShare4WikiCntBorder: display borders around the ordinary block (since v0.3.1). Default is.
 * $wgYaShare4WikiBarBorder: display borders around the block at the sidebar (since v0.3.1). Default is.

If the mode of the display borders ($wgYaShare4WikiCntBorder or $wgYaShare4WikiBarBorder) enabled, then you can use a vertical line as a separator:

Supported Services

 * $wgYaShare4WikiServices: an array defining the supported services.

The key is the name of a service. If value is either key/value configuration array or be not specified.

Default is:

Links configuration:

Redefine services and service order:

Usage
The custom tag is called &lt;ys4w&gt;. For example, if you put &lt;ys4w /&gt; on a wiki page, it will show the social networking buttons.

Syntax: or