Extension:DynamicSidebar/pl

This page is a translated version of the page Extension:DynamicSidebar and the translation is 9% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎polski • ‎العربية • ‎中文 • ‎日本語
Podręcznik rozszerzeń MediaWiki
OOjs UI icon advanced-invert.svg
DynamicSidebar
Status wydania: stabilne
Extension DynamicSidebar example.png
Realizacja Skórka , MyWiki
Opis Provides dynamic sidebars based on user pages, groups, and categories.
Autor(zy) Ryan Lane (Ryan lanedyskusja)
Ostatnia wersja 1.1 (2020-05-12)
Polityka zgodności Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.29+
Licencja GNU General Public License 2.0 or later
Pobieranie
  • $wgDynamicSidebarUseUserpages
  • $wgDynamicSidebarUseCategories
  • $wgDynamicSidebarUsePageCategories
  • $wgDynamicSidebarUseGroups
Przetłumacz rozszerzenie DynamicSidebar jeżeli jest dostępne na translatewiki.net

Sprawdź wykorzystywanie i matrycę wersji.

Problemy Otwarte zadania · Zgłoś błąd

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>".

  • Pobierz i umieść plik(i) w katalogu o nazwie DynamicSidebar w folderze extensions/.
  • Dodaj poniższy kod na dole swojego pliku LocalSettings.php:
    wfLoadExtension( 'DynamicSidebar' );
    
  • Configure as required.
  • Yes Zrobione – Przejdź do Special:Version na swojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Configuration

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
// Domyślnie: true
$wgDynamicSidebarUseUserpages = true;

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

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

Usage

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. 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, 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.

Possible issues

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