Skip to content

Latest commit

 

History

History
executable file
·
14 lines (12 loc) · 712 Bytes

README.md

File metadata and controls

executable file
·
14 lines (12 loc) · 712 Bytes

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.