Extension:TitleKey/zh
From Linux Web Expert
TitleKey 发行状态: 稳定版 |
|
---|---|
实现 | 搜索 |
描述 | 提供标题前缀搜索建议后端 |
作者 | Brooke Vibbertalk |
最新版本 | 持续更新 |
MediaWiki | 1.25+ |
表 | titlekey |
许可协议 | 未指定许可协议 |
下載 | README |
季度下載量 | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
正在使用的公开wiki数 | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
前往translatewiki.net翻譯TitleKey-{zh-hans:扩展; zh-hant:擴充功能}- | |
問題 | 开启的任务 · 报告错误 |
The TitleKey extension provides a case-insensitive page title prefix search. It uses a separate table for the keys, so it can be deployed without an expensive rebuild of core tables, and uninstalled later in preference for a different search extension such as 扩展:CirrusSearch .
For the average site administrator, the benefit of this extension is that it allows search suggestions (e.g. from API:opensearch API) to be case-insensitive.
This extension provides no benefit if you are using 扩展:CirrusSearch .
安裝
- <translate> [[<tvar name=2>Special:ExtensionDistributor/TitleKey/zh</tvar>|Download]] and move the extracted <tvar name=name>
TitleKey/zh
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleKey%2Fzh - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'TitleKey/zh' );
- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- 运行"rebuildTitleKeys.php"脚本(这需要命令行访问):Or, for MediaWiki prior to 1.40:
$ path/to/mediawiki/maintenance/run RebuildTitleKeys
$ php path/to/mediawiki/extensions/TitleKey/maintenance/rebuildTitleKeys.php
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |