Extension:DynamicSidebar/zh

This page is a translated version of the page Extension:DynamicSidebar and the translation is 28% complete.
Other languages:
English • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
DynamicSidebar
发布状态: 稳定版
Extension DynamicSidebar example.png
实现 皮肤 , 我的Wiki
描述 Provides dynamic sidebars based on user pages, groups, and categories.
作者 Ryan Lane (Ryan lanetalk)
最新版本 1.1 (2018-09-13)
兼容性方针 发行分支
MediaWiki 1.25+
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
  • $wgDynamicSidebarUseUserpages
  • $wgDynamicSidebarUseGroups
  • $wgDynamicSidebarUseCategories
翻译DynamicSidebar扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

The DynamicSidebar extends the capabilities of the sidebar for logged in users. If allowed, users can add their own custom sidebars via "User:<username>/Sidebar". Administrators can add sidebars for groups, and userpage categories via "MediaWiki:Sidebar/Group:<group>", and "MediaWiki:Sidebar/Category:<category>".

安装

  • 下载文件,并将其放置在您extensions/文件夹中的DynamicSidebar目录内。

配置

提供以下选项:

// Enable debugging
$wgDebugLogGroups['dynamic-sidebar'] = '/tmp/sidebar-debug.txt';

// Allow users to create their own custom sidebars under User:<username>/Sidebar
// Default: true
$wgDynamicSidebarUseUserpages = true;

// Allow group sidebars under MediaWiki:Sidebar/Group:<group>
// Default: true
$wgDynamicSidebarUseGroups = true;

// Allow category based sidebars under MediaWiki:Sidebar/Category:<category>
// Default: true
$wgDynamicSidebarUseCategories = true;

用法

Custom user sidebars

$wgDynamicSidebarUseUserpages must be enabled, then an administrator must add the following in "MediaWiki:Sidebar":

* USER-SIDEBAR

This string will be replaced with the user's sidebar.

Users should add their sidebar to "User:<username>/Sidebar".

Group sidebars

$wgDynamicSidebarUseGroups must be enabled, then an administrator must add the following in "MediaWiki:Sidebar":

* GROUP-SIDEBAR

This string will be replaced with the user's group sidebars.

Administrators must add a sidebar for each group at "MediaWiki:Sidebar/Group:<group>". If a user is in multiple groups, sidebars will be shown for each group.

Category sidebars

$wgDynamicSidebarUseCategories must be enabled, then an administrator must add the following in "MediaWiki:Sidebar":

* CATEGORY-SIDEBAR

This string will be replaced with the sidebars of the categories on the user's userpage.

Administrators must add a sidebar for each category at "MediaWiki:Sidebar/Category:<category>". If a user's userpage has multiple categories, sidebars will be shown for each category. Users can add sidebars by adding a category to their userpage.

可能的问题

If the Dynamic sidebar don't appear or the menu is not collapsible then you need install the CollapsibleVector (link below):

参见