Extension:NamespacePaths/de
![]() Freigabestatus: stabilCategory:Stable extensions/de |
|
---|---|
Beschreibung | Allows custom article paths to be mapped to namespaces of the wiki |
Autor(en) | Daniel Friesen @ Redwerks (DantmanDiskussion) |
Letzte Version | 1.2.0 (2022-10-07) |
MediaWiki | 1.35+Category:Extensions with manual MediaWiki version/de |
Datenbankänderungen | Nein |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | Category:Extensions in Wikimedia version control/de |
$wgNamespacePaths |
|
Übersetze die NamespacePaths-Erweiterung, wenn sie auf translatewiki.net verfügbar ist |
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
.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
NamespacePaths
im Ordnerextensions/
ablegen.
Entwickler und Code-Beitragende sollten stattdessen die Erweiterung von Git installieren, mit:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NamespacePaths
- Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'NamespacePaths' );
- 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". - 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 setsREQUEST_URI
correctly the extension will take it from there and extract the correct title on it's own.
Erledigt – Navigiere zu Special:Version in deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde. Category:Extensions still supporting pre-registration versions
Für Benutzer, die MediaWiki in der Version 1.39 und früher betreiben:
Die oben stehenden Anweisungen beschreiben die neue Installationsanweisung für diese Erweiterung unter der Verwendung von wfLoadExtension()
.
Wird diese Erweiterung in einer dieser früheren Versionen (MediaWiki 1.39 und früher) – an Stelle von wfLoadExtension( 'NamespacePaths' );
– installiert, benutze:
require_once "$IP/extensions/NamespacePaths/NamespacePaths.php";
Category:All extensions/de
Category:Extensions in Wikimedia version control/de
Category:Extensions still supporting pre-registration versions
Category:Extensions with invalid or missing type/de
Category:Extensions with manual MediaWiki version/de
Category:GPL licensed extensions/de
Category:GetLocalURL::Article extensions/de
Category:Stable extensions/de
Category:WebRequestPathInfoRouter extensions/de