Extension:CategoryTagSorter/cs

From mediawiki.org
This page is a translated version of the page Extension:CategoryTagSorter and the translation is 100% complete.
Základní informace k tomuto rozšíření MediaWiki
CategoryTagSorter
Stav rozšíření: stabilní
Zavádění Uživatelské rozhraní, MyWiki
Popis Seřadí odkazy na kategorie ve spodní části článku
Napsal(i)
Nejnovější verze 0.4.0 (2018-02-05)
MediaWiki 1.29+
PHP 5.3+
Změny v databázi Ne
Licence Apache License 2.0
Zdrojový kód
Čtvrtletní stahování 11 (Ranked 133rd)
Přeložte rozšíření CategoryTagSorter, používá-li lokalizaci z translatewiki.net

Rozšíření CategoryTagSorter abecedně řadí odkazy na kategorie ve spodní části článku.

Description

A MediaWiki page typically displays the list of category links in the order in which they appear in the article. For articles with many categories, it can be difficult for readers to find the category they're looking for. This extension fixes this by alphabetizing category links.

Sorting is ascii-betical, which usually works out OK as most wikis are configured to have the first letter of a title be uppercase (see $wgCapitalLinks .)

Toto rozšíření zahrnuje uživatelské preference pro jednotlivce, kteří preferují výchozí chování MediaWiki.

Installation

  • Stáhněte soubor/y a vložte je do adresáře pojmenovaného CategoryTagSorter ve vaší složce extensions/.
    Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTagSorter
  • Na konec vašeho souboru LocalSettings.php přidejte následující kód:
    wfLoadExtension( 'CategoryTagSorter' );
    
  • Yes Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.

User preference option

This extension provides a user-preference option added in the Appearance section which allows users to turn off the alphabetizing of the categories. By default this extension is enabled. To set the default behavior to disabled (a opt-in type of extension), set the categorysortdisabled preference to 1 in the default user preferences.[1] Like so:

$wgDefaultUserOptions['categorysortdisable'] = 1;

References

  1. Thanks goes to Matma Rex for this trick.

See also