Extension:DynamicSidebar/zh
DynamicSidebar 发布状态: 稳定版 |
|
---|---|
![]() |
|
实现 | 皮肤 , 我的Wiki |
描述 | Provides dynamic sidebars based on user pages, groups, and categories. |
作者 | Ryan Lane (Ryan lane讨论) |
最新版本 | 1.1 (2020-05-12) |
兼容性方针 | Snapshots releases along with MediaWiki. Master is not backwards compatible. |
MediaWiki | 1.29+ |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下载 | |
|
|
翻譯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 the page "User:<username>/Sidebar". Administrators can add sidebars for groups, and userpage categories via the pages "MediaWiki:Sidebar/Group:<group>", and "MediaWiki:Sidebar/Category:<category>".
安装
- 下载文件,并将其放置在您
extensions/
文件夹中的DynamicSidebar
目录内。 - 将下列代码放置在您的LocalSettings.php的底部:
wfLoadExtension( 'DynamicSidebar' );
- 根据需要配置。
- 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
配置
提供以下选项:
// 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 on the page "MediaWiki:Sidebar":
* USER-SIDEBAR
This string will be replaced with the user's sidebar.
Users should define their sidebar on the page "User:<username>/Sidebar".
Group sidebars
$wgDynamicSidebarUseGroups
must be enabled, then an administrator must add the following on the page "MediaWiki:Sidebar":
* GROUP-SIDEBAR
This string will be replaced with the user's group sidebars.
Administrators must add a sidebar for each group on the page "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 on the page "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):
此扩展被用于一个或多个维基媒体项目上。 这可能意味着扩展稳定且工作良好,足以用在同等高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中寻找此扩展名称以查看安装它的网站。 详细的已安装扩展的完整列表可在wiki的Special:Version页面找到。 |