Provide pinyin collation for category sorting for MediaWiki
转到文件
Gary Guo d24ee2e939
Merge pull request #4 from Funcer8/master
Use newest Unihan_Readings.txt and adapt to the structure change of it; PHP 7.4 compatibility fix
2021-11-05 15:09:42 +00:00
i18n Initial commit 2016-04-09 00:44:11 +01:00
includes Adapt to the structure change of Unihan_Readings.txt 2021-11-05 12:01:43 +08:00
maintenance Adapt to the structure change of Unihan_Readings.txt 2021-11-05 12:01:43 +08:00
LICENSE Initial commit 2016-04-09 00:44:11 +01:00
README.md Add pinyin-noprefix 2016-04-14 18:05:37 +01:00
extension.json Remove unused file 2016-05-20 22:20:40 +01:00

README.md

PinyinSort 0.2.0

Add pinyin as a category sorting collation

Install

  • Clone the respository, rename it to PinyinSort and copy to extensions folder
  • Add wfLoadExtension('PinyinSort'); to your LocalSettings.php
  • Add $wgCategoryCollation = 'pinyin'; to your LocalSettings.php to activate PinyinSort
    • You need to run updateCollation.php as an post-requisite for changing collation.
  • You are done!

Configuration

  • Alternatively, you can use $wgCategoryCollation = 'pinyin-noprefix'; to automatically strip prefixes.
    • For example, "Subproject:PageA" will be transformed to "PageA" during collation process.
    • You need to run updateCollation.php as an post-requisite for changing collation.