Jump to content

Extension:PinyinSort

From mediawiki.org
MediaWiki extensions manual
PinyinSort
Release status: beta
Description This extension provides pinyin collation for categories
Author(s) Gary Guo (Nbdd0121talk)
Latest version 0.1.0 (2016-04-09)
MediaWiki 1.25+
Database changes No
License BSD 2-clause "Simplified" License
Download
README

PinyinSort provides a collation named 'pinyin' as an option for $wgCategoryCollation.

Install

[edit]
  • Clone the repository, 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 this extension
    • You need to run updateCollation.php as an post-requisite for changing collation.
  • You are done!