Extension:DynamicSidebar/ru

This page is a translated version of the page Extension:DynamicSidebar and the translation is 21% complete.
Справка по расширениям MediaWiki
DynamicSidebar
Статус релиза: стабильно
Реализация Тема оформления , MyWiki
Описание 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 backward compatible.
MediaWiki 1.29+
Лицензия GNU General Public License 2.0 или позднее
Скачать
  • $wgDynamicSidebarUseUserpages
  • $wgDynamicSidebarUseCategories
  • $wgDynamicSidebarUsePageCategories
  • $wgDynamicSidebarUseGroups
Ежеквартальные загрузки 76 (Ranked 80th)
Переведите расширение 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>".

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием DynamicSidebar в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DynamicSidebar
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'DynamicSidebar' );
    
  • Configure as required.
  •   Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Настройка

The following options are available:

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

// Allow users to create their own custom sidebars under User:<username>/Sidebar
// По умолчанию: true
$wgDynamicSidebarUseUserpages = true;

// Allow group sidebars under MediaWiki:Sidebar/Group:<group>
// По умолчанию: true
$wgDynamicSidebarUseGroups = true;

// Allow user-category based sidebars under MediaWiki:Sidebar/Category:<category>. (It will only show the sidebar if the category is set on the user page.)
// По умолчанию: true
$wgDynamicSidebarUseCategories = true;

// Allow category based sidebars under MediaWiki:Sidebar/Category:<category> (will only show the sidebar if the category is set on the page).
// Default: false
$wgDynamicSidebarUsePageCategories = true;

Использование

Custom user sidebars

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

* USER-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. The group name listed here should be as expressed in LocalSettings.php, so "MediaWiki:Sidebar/Group:sysop", not "MediaWiki:Sidebar/Group:Administrator" or "MediaWiki:Sidebar/Group:Administrators".

Category sidebars

$wgDynamicSidebarUseCategories must be enabled to allow Users to add sidebars to pages based on the category set in their own user page.

$wgDynamicSidebarUsePageCategories must be enabled to allow Users to add sidebars to pages based on the category set in the page.

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 or the page itself.

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 or directly by adding a category in the page.

Возможные ошибки

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

See also