Extension:SearchBlox/zh

From Linux Web Expert

Revision as of 07:43, 4 December 2023 by 163.13.9.60 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki扩展手册
SearchBlox
发行状态: 不再維護
实现 用户界面, 搜索
描述 只有少数搜索匹配项时查询SearchBlox服务器
作者 Michael Overmeyer (Movermeyertalk)
最新版本 0.1.0 (2013-04-19)
MediaWiki 1.18+
数据库更改
许可协议 GNU通用公眾授權條款2.0
下載
README
Commits
示例 The Warrior Wiki

  • $wgSearchBloxOrganizationName
  • $wgSearchBloxOrganizationWebsite
  • $wgSearchBloxHost
  • $wgSearchBloxServletUrl
  • $wgSearchBloxFrontendUrl
季度下載量 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').

SearchBlox扩展将查询SearchBlox服务器并显示结果,如果您的常规搜索返回的结果少于10个“页面文本匹配”。

安裝

  • <translate> Download and place the file(s) in a directory called <tvar name=name>SearchBlox/zh</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    require_once "$IP/extensions/SearchBlox/zh/SearchBlox/zh.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>

配置参数

值名 默认值 描述
$wgSearchBloxOrganizationName "Example Inc." 运行SearchBlox服务器的组织的名称
$wgSearchBloxOrganizationWebsite "http://example.com" 所在组织的主要网址
$wgSearchBloxHost "http://searchblox.example.com" SearchBlox服务器的主机
$wgSearchBloxServletUrl "http://searchblox.example.com/searchblox/servlet/SearchServlet" 用于发起查询的网址
$wgSearchBloxFrontendUrl "http://searchblox.example.com/searchblox/plugin/index.html" 指向用户的网址以获取更多结果