Extension:CategorySortHeaders/de-formal
CategorySortHeaders Release status: stable |
|
---|---|
Implementation | Hook |
Description | Make custom headings in category pages, instead of just the first character headings |
Author(s) | |
Latest version | 0.4.0 (2021-04-20) |
MediaWiki | 1.35+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | 5 (Ranked 136th) |
Translate the CategorySortHeaders extension if it is available at translatewiki.net | |
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^]].
Usage
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.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
CategorySortHeaders
im Ordnerextensions/
ablegen.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CategorySortHeaders - Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
wfLoadExtension( 'CategorySortHeaders' );
- Run either
update.php
orupdateCollation.php
from the command line (Note that running the web installer in upgrade mode does not work due to task T19335) - Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Für Benutzer, die MediaWiki in der Version 1.35 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.35 und früher) – an Stelle von wfLoadExtension( 'CategorySortHeaders' );
– installiert, benutzen Sie:
require_once "$IP/extensions/CategorySortHeaders/CategorySortHeaders.php";
Konfiguration
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 run:
php updateCollation.php --force
Siehe auch
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/de-formal
- Hook extensions/de-formal
- GPL licensed extensions/de-formal
- Extensions in Wikimedia version control/de-formal
- Collation::factory extensions/de-formal
- All extensions/de-formal
- Extensions still supporting pre-registration versions
- Extensions included in Miraheze/de-formal
- Extensions included in WikiForge/de-formal
- Category extensions/de-formal