扩展:BypassSearch

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:BypassSearch and the translation is 40% complete.

Other languages:
English • ‎español • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
BypassSearch
发布状态: 稳定版
实现 User interface, MyWiki
描述 Adds a user preference to go directly to creating a new page when the Go button is used and the target page doesn't exist
作者 slakr, Leucosticte
最新版本 1.0.2 (2013-11-23)
MediaWiki 1.20+
PHP 5.3+
数据更新
许可协议 未指定许可协议
下载 See the page containing the code
翻译BypassSearch扩展如果在translatewiki.net可用
检查使用和版本矩阵。

The BypassSearch extension adds a user preference to go directly to creating a new page when the Go button is used and the target page doesn't exist.

When using the search box, the default behavior is to Go directly to an article if it exists, or if it doesn't, use the search engine to find the given term. This extension allows the user to specify (under the "Misc" tab of "my preferences") the he wants to go directly into creating a new page instead of activating the autosearch when the given article doesn't exist.

If, instead, you wish to force this behavior for everyone, you don't need to use this extension; rather, simply enable $wgGoToEdit globally.

安装

  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/BypassSearch/BypassSearch.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

配置

# If you would like the option enabled by default, set this to 1.
$wgDefaultUserOptions['bypasssearch'] = 0;