Extension:BypassSearch

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎日本語 • ‎polski • ‎sicilianu
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
BypassSearch

Release status:Extension status stable

ImplementationTemplate:Extension#type User interface, MyWiki
DescriptionTemplate:Extension#description 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
Author(s)Template:Extension#username slakr, Leucosticte
Latest versionTemplate:Extension#version 1.0.2 (2013-11-23)
MediaWikiTemplate:Extension#mediawiki 1.20+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license No license specified
Download See the page containing the code
Hooks usedTemplate:Extension#hook
UserToggles
SpecialSearchNogomatch

Translate the BypassSearch extension if it is available at translatewiki.net

Check usage and version matrix.

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 $wgGoToEditManual:$wgGoToEdit globally.

Installation[edit]

  • Copy the code into files and place the file(s) in a directory called BypassSearch in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/BypassSearch/BypassSearch.php";
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

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