Extension:NamespacePaths/pl

Category:Extensions with invalid or missing type/plCategory:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
NamespacePaths
Status wydania: stabilneCategory:Stable extensions/pl
Opis Allows custom article paths to be mapped to namespaces of the wiki
Autor(zy) Daniel Friesen @ Redwerks (Dantmandyskusja)
Ostatnia wersja 1.2.0 (2022-10-07)
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
Zmiany w bazie danych Nie
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
$wgNamespacePaths
Quarterly downloads 1 (Ranked 97th)
Przetłumacz rozszerzenie NamespacePaths jeżeli jest dostępne na translatewiki.net
Category:All extensions/pl

The NamespacePaths extension extends custom article paths to allow namespaces to be mapped to extra paths separate from the article path. For example mapping the help namespace to /help/$1 so pages like "Help:Contents" go to /help/Contents.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie NamespacePaths w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NamespacePaths
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'NamespacePaths' );
    
  1. Configure the $wgNamespacePaths with the paths you want to use for namespaces, the key is the namespace id (you can use the NS_ constants), and the value is a $wgArticlePath style string like "/help/$1".
  2. Configure your webserver to pass the extra paths to MediaWiki. Consult the short URL documentation you set the article paths for your wiki and extend it to map the extra paths to "index.php".
Note: You don't want to try mapping things to index.php?title=$1, doing so will break the paths. If you just make sure that index.php is run for these extra article paths as long as your webserver sets REQUEST_URI correctly the extension will take it from there and extract the correct title on it's own.

Do użytkowników używających wersji MediaWiki 1.39 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.39 i wcześniejsze), zamiast wfLoadExtension( 'NamespacePaths' ); użyj:

require_once "$IP/extensions/NamespacePaths/NamespacePaths.php";
Category:All extensions/pl Category:Extensions in Wikimedia version control/pl Category:Extensions still supporting pre-registration versions Category:Extensions with invalid or missing type/pl Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/pl Category:GetLocalURL::Article extensions/pl Category:Stable extensions/pl Category:WebRequestPathInfoRouter extensions/pl