Rozszerzenie:Linki dla administratorów
![]() Status wydania: stabilne |
|
---|---|
Realizacja | Strona specjalna , Hak , API |
Opis | Defines a special page, "AdminLinks", meant to serve as a "control panel" for administrators; and adds a link to this page to their "user links" |
Autor(zy) | Yaron Koren <yaron57@gmail.com> (Yaron Korendyskusja) |
Ostatnia wersja | 0.6.3 (sierpień 2024) |
Polityka zgodności | Master utrzymuje kompatybilność wsteczną. |
MediaWiki | 1.35+ |
PHP | 7.4+ |
Zmiany w bazie danych | Nie |
Licencja | Licencja GNU General Public License 2.0 lub nowsza |
Pobieranie | README |
Przykład | The "Admin links" page for Discourse DB |
|
|
adminlinks |
|
Przetłumacz rozszerzenie Admin Links jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
Admin Links is an extension to MediaWiki that defines a special page, "Special:AdminLinks", that holds links meant to be helpful for wiki administrators; it is meant to serve as a "control panel" for the functions an administrator would typically perform in a wiki. All users can view this page; however, for those with the 'adminlinks' permission (sysops/administrators, by default), a link to the page also shows up in their "Personal URLs", between "Talk" and "Preferences".
Linki dla administratorów zapewniają hak i API, które umożliwiają innym rozszerzeniom dodawanie własnych linków i sekcji do strony.
You can see an example of this page with additional links and sections added by other extensions here.
MediaWiki już oferuje stronę "Special:SpecialPages", która wyświetla specjalne strony dla wszystkich rozszerzeń zainstalowanych na wiki, co może skłonić do zastanowienia się, po co potrzebna jest dodatkowa strona "AdminLinks". Jednak istnieje szereg istotnych różnic, które sprawiają, że "AdminLinks" jest przydatne:
- "SpecialPages" holds links to every special page in the wiki, including many (such as Unused categories) that are not specifically helpful to administrators; "AdminLinks" attempts to link only to the administrator-specific ones
- "AdminLinks" can hold links to pages that are not special pages, such as the "Edit sidebar" page and documentation for various extensions
- Finally, the Admin Links extension puts a link to "AdminLinks" in administrators' personal tools, which makes things more convenient.
Kod i pobieranie
You can download the Admin Links code, in .zip format, here.
Możesz również pobrać kod bezpośrednio za pomocą Git z repozytorium kodu źródłowego MediaWiki. Z wiersza poleceń możesz wywołać następujące akcje:
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AdminLinks.git
Aby zobaczyć kod online, w tym historię wersji dla każdego pliku, przejdź tutaj: phab:diffusion/EADL/browse/master/
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
AdminLinks
w folderzeextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AdminLinks - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'AdminLinks' );
- Skonfiguruj zgodnie z wymaganiami.
- Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Konfiguracja
Jeśli chcesz, aby członkowie grup innych niż "sysop" widzieli link do strony AdminLinks wśród swoich linków nawigacyjnych, możesz również dodać linie podobne do poniższej po niej:
$wgGroupPermissions['my-group']['adminlinks'] = true;
By default, links are separated by an interpunct (·) You can change this via the global variable $wgAdminLinksDelimiter; for example, to have links separated by a pipe, add the following:
$wgAdminLinksDelimiter = '|';
Autorzy
Admin Links was written by Yaron Koren, reachable at yaron57@gmail.com.
Historia wersji
Admin Links is currently at version 0.6.3.
Historia wersji jest:
- 0.1 (2009-05-13) - Initial version
- 0.1.1 (2009-06-02) - Support for many languages added
- 0.1.2 (2009-09-09) - Support for many more languages added
- 0.1.3 (2010-07-12) - More links added; some section headers renamed
- 0.1.4 (2011-02-22) - Handling improved for MW 1.16+; link to Special:ListFiles added
- 0.1.5 (2011-10-10) - Handling improved for MW 1.17+; link to Special:Log added
- 0.1.6 (2012-01-06) - Support removed for MW < 1.16
- 0.1.7 (2012-11-12) - Handling improved for MW 1.18+; support removed for MW < 1.18
- 0.1.8 (2013-05-01) - Fix for ALItem::newFromPage()
- 0.2 (2014-05-30) - i18n messages moved into JSON files; grouping added for Special:AdminLinks within Special:SpecialPages
- 0.2.1 (2015-01-20) - Minor code fixes
- 0.2.2 (2015-06-24) - Support for Composer added; handling improved for MW 1.21+
- 0.2.3 (2016-06-07) - Fix for nonexistent special pages; support removed for MW < 1.23
- 0.3 (2018-05-24) - extension.json added
- 0.3.1 (2018-05-31) - Re-added accidentally-removed support for MW < 1.28; dedicated link to Special:CreateAccount added
- 0.4 (2020-01-16) - AdminLinks.php removed; support removed for MW < 1.28; link escaping improved
- 0.4.1 (2020-06-22) - Handling improved for MW 1.32+
- 0.4.2 (2021-06-08) - Handling improved for MW 1.35+
- 0.5 (2022-02-07) - Support removed for MW < 1.32; coding improvements
- 0.6 (2023-01-27) - Support removed for MW < 1.35; $wgAdminLinksDelimiter setting added; coding improvements
- 0.6.1 (2023-03-28) - Fix for display within Chameleon skin
- 0.6.2 (2023-08-21) - Updated hook handling; support removed for PHP 7.3
- 0.6.3 (2024-08-27) - Ignore, instead of displaying error for, nonexistent special pages; added "data-row-name" CSS attribute for each row
API linków dla administratorów
Aby rozszerzenie mogło dodać linki i sekcje do strony AdminLinks, musi zdefiniować nową funkcję i zarejestrować ją w haku "AdminLinks". See the AdminLinks hook manual for more info.
Rozszerzenia używające AdminLinks
Wiele rozszerzeń i skórek dodaje linki do strony linki dla administratorów, jeśli są zainstalowane. See Category:AdminLinks extensions for the current list.
Możliwości pomocy w projekcie
Zgłaszanie błędów i prośby o dodanie funkcji
Send any bug reports and requests to Yaron Koren, at yaron57@gmail.com.
Wnoszenie poprawek do projektu
If you found some bug and fixed it, or if you wrote code for a new feature, please create a patch by going to the "AdminLinks" directory, and typing:
git diff > descriptivename.patch
Następnie wyślij tę poprawkę, wraz z opisem, do Yaron Koren.
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ć. |