扩展:Pluso

From mediawiki.org
This page is a translated version of the page Extension:Pluso and the translation is 46% complete.
MediaWiki扩展手冊
OOjs UI icon advanced-invert.svg
Pluso
發布狀態: 穩定版本
PlusoSidebarTitle.png
实现 皮肤
描述 於側邊欄及標題顯示社交按鈕。
作者 Alexandr Efremov讨论
最新版本 0.7 (2021-10-03)
MediaWiki 1.35+
许可协议 GNU通用公眾授權條款2.0或更新版本
下載

  • $wgPlusoSidebar
  • $wgPlusoBackgroundSidebar
  • $wgPlusoOptionsSidebar
  • $wgPlusoThemeSidebar
  • $wgPlusoServicesSidebar
  • $wgPlusoHeader
  • $wgPlusoMain
  • $wgPlusoBackgroundHeader
  • $wgPlusoOptionsHeader
  • $wgPlusoThemeHeader
  • $wgPlusoServicesHeader

检查使用和版本矩阵。

Pluso擴展於側邊欄及標題添加小工具。

安裝

Note: To enter your ID in LocalSettings.php is an optional configuration.
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

致使用MediaWiki 1.24或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'Pluso' );,您需要使用:

require_once "$IP/extensions/Pluso/Pluso.php";

配置

該小工具於條目標題截圖
該小工具於側邊欄截圖
Codes with skins
参数 默认 描述
$wgPlusoSidebar true 啟用或關閉側邊欄位顯示小工具。
$wgPlusoHeader true 啟用或關閉標題顯示小工具。
$wgPlusoMain false Enables or disables the display of the widget Pluso on the main page
$wgPlusoServicesSidebar "vkontakte,odnoklassniki,facebook,twitter,livejournal,moimir" Service codes used in the sidebar
$wgPlusoServicesHeader "vkontakte,odnoklassniki,facebook,twitter,livejournal,moimir" Service codes used in the title
$wgPlusoThemeSidebar "04" The skin used in the sidebar
$wgPlusoOptionsSidebar ["small","square","multiline","horizontal","nocounter"] 设置:
  1. The size of the panel (big, medium,small)
  2. Type of icons (square, round)
  3. Sorting (line, multiline)
  4. Position (horizontal, vertical)

所有參數都是必需的。

$wgPlusoOptionsHeader ["small","square","line","horizontal","counter"] 设置:
  1. The size of the panel (big, medium,small)
  2. Type of icons (square, round)
  3. Sorting (line, multiline)
  4. Position (horizontal, vertical)

All parameters are required

$wgPlusoThemeHeader "08" The skin used in the title
$wgPlusoBackgroundHeader "transparent" Background used in the sidebar (you can use color codes #FFF)
$wgPlusoBackgroundSidebar "transparent" Background used in the title (you can use color codes #FFF)

Basic service codes

The list of service codes that you can use parameters $wgPlusoServicesSidebar and $wgPlusoServicesHeader:

  • blogger
  • vkontakte
  • odnoklassniki
  • facebook
  • evernote
  • formspring
  • googlebookmark
  • moimir
  • instapaper
  • linkedin
  • liveinternet
  • livejournal
  • pinterest
  • stumbleupon
  • surfingbird
  • tumblr
  • myspace
  • vkrugu
  • bookmark
  • moemesto

Changes

  • Removed jquery, replaced by setIndicators
  • Added the ability to change options, such as the shape of an icon, etc.
  • Switching to local use, standalone from pluso.ru, the expansion has become self-contained (v.0.7)