Extension:CategorySortHeaders
![]() Sürüm durumu: kararlı |
|
---|---|
Uygulama | Kanca |
Açıklama | Kategori sayfalarında sadece ilk karakter başlıkları yerine özel başlıklar oluşturun |
Yazar(lar) | |
En son sürüm | 0.4.0 (2021-04-20) |
MediaWiki | 1.35+ |
Veritabanı değişiklikleri | Hayır |
Lisans | GNU Genel Kamu Lisansı 2.0 veya üstü |
İndir | |
|
|
Quarterly downloads | 12 (Ranked 165th) |
Translatewiki.net adresinde mevcutsa, CategorySortHeaders uzantısını çevirin | |
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^]].
Kullanım
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.
Kurulum
- Dosyaları indirin ve
extensions/
klasörünüzdekiCategorySortHeaders
adlı dizine yerleştirin. LocalSettings.php
dosyanızın altına aşağıdaki kodu ekleyin:wfLoadExtension( 'CategorySortHeaders' );
- Run either "update.php" or "updateCollation.php" from the command line (Note that running the web installer in upgrade mode does not work due to görev T19335)
Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.
MediaWiki 1.35 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.35 ve önceki sürümler) yüklemeniz gerekirse, wfLoadExtension( 'CategorySortHeaders' );
yerine kullanmanız gerekir:
require_once "$IP/extensions/CategorySortHeaders/CategorySortHeaders.php";
Yapılandırma
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 runphp updateCollation.php --force
Ayrıca bakınız
![]() | This extension is included in the following packages and/or wiki farms: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |