Extension:CategorySortHeaders/pl
Status wydania: stabilne |
|
|---|---|
| Realizacja | Hak |
| Opis | Make custom headings in category pages, instead of just the first character headings |
| Autor(zy) | |
| Ostatnia wersja | 0.4.0 (2021-04-20) |
| MediaWiki | 1.35+ |
| Zmiany w bazie danych | Nie |
| Licencja | Licencja GNU General Public License 2.0 lub nowsza |
| Pobieranie | |
|
|
|
| Przetłumacz rozszerzenie CategorySortHeaders jeżeli jest dostępne na translatewiki.net | |
The CategorySortHeaders extension to allow specifying custom multi-character 'first-character' sorting headers to list pages under in categories, using syntax like [[Category:Foo|^Header^Invisible part of sortkey]] or even just [[Category:Foo|^Header^]].
Użycie
If you want a category to use a custom header, do [[Category:Cat name|^header^OptionalInvisibleSortkey]] (or {{DEFAULTSORT:^header^Optionalsortkey}}.
If you want to use the default first letter headers, just use categories as normal.
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
CategorySortHeadersw folderzeextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CategorySortHeaders
- Dodaj poniższy kod na dole twojego pliku LocalSettings.php:
wfLoadExtension( 'CategorySortHeaders' );
- Run either
update.phporupdateCollation.phpfrom the command line (Note that running the web installer in upgrade mode does not work due to T19335)
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Do użytkowników używających wersji MediaWiki 1.35 lub wcześniejszej:
Powyższe instrukcje opisują nowy sposób instalowania tego rozszerzenia z wykorzystaniem wfLoadExtension().
Jeżeli chcesz zainstalować to rozszerzenie we wcześniejszych wersjach (MediaWiki 1.35 i wcześniejsze), zamiast wfLoadExtension( 'CategorySortHeaders' ); użyj:
require_once "$IP/extensions/CategorySortHeaders/CategorySortHeaders.php";
Konfiguracja
This extension has a single configuration option:
$wgCategorySortHeaderAppendPageNameToKey- It defaults to true, which causes a sortkey of
^foo^to be treated like^foo^{{PAGENAME}}. If it is set to false, it will sort^foo^above^foo^<any string here>. (In both cases, if there are two exactly same sort keys, the pagename will be used as a tie breaker.) After changing this option you should run:
php updateCollation.php --force
Zobacz też
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: To nie jest pełna lista. Niektóre farmy/hosty wiki lub pakiety mogą zawierać to rozszerzenie nawet jeśli nie są one tutaj wymienione. Zawsze sprawdzaj swoje farmy/hosty wiki, aby to potwierdzić. |
