Extension:DynamicSidebar/pl
DynamicSidebar Status wydania: stabilne |
|
---|---|
File:Extension DynamicSidebar example.png | |
Realizacja | Skórka , MyWiki |
Opis | Provides dynamic sidebars based on user pages, groups, and categories. |
Autor(zy) | Ryan Lane (Ryan lanetalk) |
Ostatnia wersja | 1.1 (2020-05-12) |
Polityka zgodności | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.29+ |
Licencja | Nie określono |
Pobieranie | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Przetłumacz rozszerzenie DynamicSidebar jeżeli jest dostępne na translatewiki.net | |
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>".
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/DynamicSidebar/pl</tvar>|Download]] and move the extracted <tvar name=name>
DynamicSidebar/pl
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DynamicSidebar%2Fpl - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'DynamicSidebar/pl' );
- Configure as required.
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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 user-category based sidebars under MediaWiki:Sidebar/Category:<category>. (It will only show the sidebar if the category is set on the user page.)
// Domyślnie: 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).
// Domyślnie: false
$wgDynamicSidebarUsePageCategories = 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 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.
Possible issues
If the Dynamic sidebar doesn't appear or the menu is not collapsible then you need install the CollapsibleVector (link below):
See also
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions/pl
- Skin extensions/pl
- Personalization extensions/pl
- Extensions with manual MediaWiki version
- Extensions with no license specified/pl
- Extensions in Wikimedia version control/pl
- All extensions/pl
- Extensions not in ExtensionJson
- Menu extensions/pl