Extension:NamespacePaths/tr

Category:Extensions with invalid or missing type/trCategory:GPL licensed extensions/tr
MediaWiki manüel uzantıları
NamespacePaths
Sürüm durumu: kararlıCategory:Stable extensions/tr
Açıklama Özel madde yollarının vikinin ad alanlarına eşlenmesine izin verir
Yazar(lar) Daniel Friesen @ Redwerks (Dantmanmesaj)
En son sürüm 1.2.0 (2022-10-07)
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
Veritabanı değişiklikleri Hayır
Lisans GNU Genel Kamu Lisansı 2.0 veya üstü
İndir Category:Extensions in Wikimedia version control/tr
$wgNamespacePaths
Quarterly downloads 1 (Ranked 100th)
Translatewiki.net adresinde mevcutsa, NamespacePaths uzantısını çevirin
Category:All extensions/tr

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.

Kurulum

  • Dosyaları indirin ve extensions/ klasörünüzdeki NamespacePaths adlı dizine yerleştirin.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NamespacePaths
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    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.

MediaWiki 1.39 veya önceki bir sürümü çalıştıran kullanıcılara:

Yukarıdaki talimatlar, bu eklentiyi wfLoadExtension() kullanarak kurmanın yeni yolunu açıklar. Bu uzantıyı önceki sürümlerine (MediaWiki 1.39 ve önceki sürümler) yüklemeniz gerekirse, wfLoadExtension( 'NamespacePaths' ); yerine kullanmanız gerekir:

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