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 LocalSettings.php:

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, Monobook, Chick, Simple, and MySkin, but not Standard, Nostalgia or CologneBlue.
 * $wgYaShare4WikiSidebar: integrating the share box in the sidebar. Default is false.

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 YAS4W_ST_BUTTON.

You can use following style types:


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


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

You can use following style types:


 * button: (configuration constant YAS4W_ST_BUTTON</tt>);
 * link: (configuration constant YAS4W_ST_LINK</tt>);
 * icon with no text: (configuration constant YAS4W_ST_ICON</tt>).

The interface language
You can use following languages:
 * $wgYaShare4WikiI10n: the interface language (since v0.3.1). Default is: null</tt>.
 * 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 YAS4W_THEME_DEFAULT</tt>.
 * $wgYaShare4WikiBarTheme: theme for the block at the sidebar (since v0.3.1). Default is YAS4W_THEME_DEFAULT</tt>.


 * block with the dark colors: (configuration constant YAS4W_THEME_DARK</tt>). 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 YAS4W_THEME_COUNTER</tt>). 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 YAS4W_THEME_DEFAULT</tt>).

A border around the block

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

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