The UnihanTag Extension adds a >unihan> parser tag, which is used to add information about Chinese characters to a MediaWiki page.
Download UnihanTag and place it under $IP/extensions/UnihanTag/
Download makedbm.pl and place it under $IP/extensions/UnihanTag/
Download Unihan database at 1
Convert the Unihan text file into a CDB with:
perl makedbm.pl
Enable the extension by adding this line to your LocalSettings.php:
require_once('extensions/UnihanTag/UnihanTag.php');
Once installed, you may utilize UnihanTag by adding the <unihan> tag to articles:
<unihan add="mandarin" contours="yes">老师</unihan>
This results in:
老师 (Pinyin: lǎo shī)
Kenny Root
Copyright © Kenny Root. All rights reserved.