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.

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);
 * link: (configuration constant YAS4W_ST_LINK</tt>);
 * icon with no text: (configuration constant YAS4W_ST_ICON</tt>).

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