扩展:Soundex

From mediawiki.org
This page is a translated version of the page Extension:Soundex and the translation is 100% complete.
MediaWiki扩展手册
Soundex
发行状态: 不再維護
实现 标签
描述 使用<soundex></soundex>标签生成soundex代码
作者 Kurt M. Weber (Kmweber留言)
最新版本 0.1 (2008-09-18)
MediaWiki
许可协议 GNU通用公眾授權條款2.0或更新版本
下載 Soundex.php

此扩展添加了$oundex标记,以允许从MediaWiki内生成Soundex代码。 从本质上讲,它只是PHP内置的soundex()函数的包装。

用法

要生成soundex代码,只需将名称放在‎<soundex>‎</soundex>标记之间。 例如:

<soundex>Kurt</soundex>

会产生

K630

文件

只有一个文件Soundex.php 只需在extensions目录中创建一个Soundex目录,然后在其中放置Soundex.php文件,然后将以下内容添加到LocalSettings.php 中:

require_once("extensions/Soundex/Soundex.php");