Open main menu

Extension:PinyinSort

MediaWiki extensions manual
OOjs UI icon advanced.svg
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
Hooks used
Collation::factory
Translate the PinyinSort extension if it is available at translatewiki.net
Check usage and version matrix.

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

InstallEdit

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